Skip to main content

Posts

Showing posts with the label .Net6

A Demo On .NET6 API Sending Email Using SendGrid NuGet Package

In this article, we are going to implement a sample in .NET6 Web API to send emails using the SendGrid Nuget Package. Create A .Net6 Web API Project: Let's create a .Net6 Web API sample application to accomplish our demo. We can use either Visual Studio 2022 or Visual Studio Code(using .NET CLI commands) to create any.Net6 application. For this demo, I'm using the 'Visual Studio Code'(using the .NET CLI command) editor. CLI command dotnet new webapi -o Your_Project_Name SendGrid: SendGrid is a third-party email provider from which we can deal with 'send', and 'receive' operations of email to our application. SendGrid SMTP(Simple Mail Transfer Protocol) provider for email transfer. SendGrid also provides SendGrid .Net NuGet package that provides easy configuration to any .NET applications. So to use the SendGrid SMTP we need 'Auth Key', 'From Email', so let's register into the SendGrid. The following are the steps to register and

Part-4 Asynchronous Data Communication Between Microservices Using RabbitMQ Message Broker With MassTransit[.NET6 Microservice Series]

In this article, we are going to establish asynchronous data communication between microservice using the RabbitMQ message broker along with MassTransit. Now let's take look at the 'Orders' GET endpoint response. Here we can understand we don't have 'Product' information. So we have to make a way to save the required 'Product' information into the 'SalesBusiness.API' microservice application from the 'Manufacture.API' microservice application. Steps we are going to accomplish this demo are: Configure RabbitMQ message broker with MassTransit for asynchronous data communication between the microservices. In the 'Manufacture' database we have a 'Products' table(like Master table), now we will create a new 'Products' table(like child table) in 'SalesDatabase', but here we will add only required columns. So that while fetching the 'Orders' endpoint it is to fetch required products information. So with he

Part -1 Introduction On Microservice And SQL Database Design For Microservices [.NET 6 MicorService Series]

In the .NET6 Microservice series, this is the first installment article, where we are going to understand about the Microservices and also we are going to create SQL databases for our sample microservices of this series. Monolithic Architecture: Monolithic architecture is traditional or most commonly used for developing the application. In this approach, all the business units or logic are implemented under a single application. A single database can be used for data serving. Microservice Architecture: In Microservice architecture each business unit or logic is developed as separate small individual applications. So each separate application is lightweight and they have their own responsibilities to carry on and these individual services are called Microservices. In Microservices each service has its own code and databases so anyone service down remaining microservice services are unaffected. Each microservice can be hosted anywhere on the web. Each microservice can interact wi

A CRUD Operation Demo With Blazor WebAssembly(.NET6) + Strawberry Shake GraphQL Client + MudBlazor UI + GraphQL API

In this article, we are to implement CRUD operation in Blazor WebAssembly(.NET6) by consuming GraphQL endpoint with help of  'Strawberry Shake'(Graphql Client Library). GraphQL Endpoint: In this demo, we have to consume the GraphQL endpoint from our Blazor WebAssembly application. Source code for .Net6 GraphQL CRUD operations. The article explains about creating .NET 6 GraphQL CRUD operations The video explains about creating .NET6 GraphQL CRUD operations Strawberry Shake: Strawberry shake is an open-source GraphQL client that is compliant with the newest GraphQL draft spec, which makes Strawberry Shake compatible with all GraphQL compliant servers like Hot Chocolate, Apollo Server, GraphQL Java, and various other servers out there. Strawberry Shake will generate the schema of GraphQL Server which will help to invoke the GraphQL endpoint very easily. Strawberry Shake CLI Tool: Strawberry shake CLI needs to be configured because CLI will help us to generate the GraphQL clie