Cross-Platform Communications: gRPC Server and Client: .NET Core

When we are developing web solutions consisting of several projects, it is very common communicate between each other, and the common solutions are proprietary solutions (like .NET Remoting), or standard solutions like REST or SOAP. Recently, I discovered gRPC as the Google solution for Cross-Platform communications, allowing the developers to communicate applications. The advantage of gRPC is that it doesn’t use message formats which need to assemble JSON or XML (and it makes a bigger message, sometimes). Instead of this, gRPC uses Protocol Buffers to define binary messages to be interchanged between the parts.

At this time, I start with .NET Core, and you can see the details for creating server and client:

GitHub Repository: https://github.com/alexis-dotnet/Dotnet.Grpc

protoc command: protoc -I=pb –csharp_out=Messages pb/messages.proto –grpc_out=Messages –plugin=protoc-gen-grpc=/Users/_your username_/.nuget/packages/Grpc.Tools/1.1.0/tools/macosx_x64/grpc_csharp_plugin
chmod 755 generateCerts.sh

Links:
gRPC: http://www.grpc.io/
Protocol Buffers: https://developers.google.com/protocol-buffers/
SSH Keys Generation: http://stackoverflow.com/a/37739265

Installing Redis on Azure Ubuntu VM

In one of my latest developments I needed to have a local Redis for caching requirements. I feel comfortable on terminal/command line, so it wasn’t hard to have an Ubuntu VM on VirtualBox, and it is very helpful to have it running on cloud if you need a testing site; nevertheless, there are several commands you need to remember to install it properly. Because of this, I created the following video installing Redis on an Ubuntu VM on Microsoft Azure. Here the details:

Installing Redis on Azure Ubuntu VM (and getting connected from Windows)

1. Creating Ubuntu VM on Azure
2. SSH Connection to VM
3. Installing and configuring Redis
4. Creating rule for receiving connections in Azure
5. Connection from Windows Redis client

ASP.NET Core Basics – Part 2

Now, we continue with the series ASP.NET Core Basics. At this time we are been focused in MVC specific topics, which will be covered in a 7 mins video.

Contents:
1. MVC. Controllers
2. MVC. Models and Views
3. ViewModel
4. Post/Redirect/Get
5. Model Validation

Links:

MVC Pattern: https://en.wikipedia.org/wiki/Model–view–controller
Post/Redirect/Get Pattern: https://en.wikipedia.org/wiki/Post/Redirect/Get
Github Repository: https://github.com/alexis-dotnet/NewsApp_Stage2
The New York Times API: https://developer.nytimes.com/

Español: Conceptos Básicos ASP.NET Core P.2
Português: Conceitos Básicos ASP.NET Core P.2

Installing SQL Server for Linux on Docker Container

It is very common requiring MS SqlServer if you are developing ASP.NET web applications; because of this, having a local Sql Server is a great plus if you are developing web apps on ASP.NET Core on Mac, or Linux. One of the things to take in consideration is that we can make a “clean and rapid installation” using a Docker container. Take a look at this video for instructions!

1. Installing Docker
2. Installing Kitematic
3. Installing and using SQL Server Client (sql-cli)
4. Installing mssql extension on VSCode
5. Configuring connection on VSCode

ASP.NET Core Basics – Part 1

I’m starting this blog with a series of videos focused on ASP.NET Core. This tutorial has been completely developed on C# + Visual Studio Code + Mac OSX, but (almost) all commands and concepts are fully compatible with Windows and Linux.

Contents:
1. Project Startup
2. Configuration and Services
3. Startup and Middleware

Links:

Github Repo: https://github.com/alexis-dotnet/NewApp_Stage1
Microsoft .NET Core: https://www.microsoft.com/net/core
Node JS: https://nodejs.org/en/
Yeoman: http://yeoman.io/
Visual Studio Code: https://code.visualstudio.com/

Español: Conceptos Básicos ASP.NET Core P.1

Português: Conceitos Básicos ASP.NET Core P.1

Blog at WordPress.com.

Up ↑