In this video we explains how to create a .NET Core Web API Microservice with MySQL [.Net Core MySQL Microservice] using Entity Framework Core (Entity Framework Core MySQL).
Microservice Architecture Playlist: Microservices Tutorial Playlist Link: • What are Microservices? - Microservic...
The Microservice Architecture has become hugely popular in recent years. Experts predict that all New Apps Will Feature Microservice Architectures that improve the ability to design, debug, update, and leverage third-party code. Microservice architecture will continue to help businesses reduce downtime, optimize resources, and decrease infrastructure costs.
This video is also an ASP.Net core web API tutorial for beginners as we have completely included the ASP.Net Core API development. It can also be considered as a MySQL Entity Framework Core Tutorial.
In this .NET Docker tutorial, you'll learn how to manage more than one container and communicate between them when using Container Tools in Visual Studio. Managing multiple containers requires container orchestration and requires an orchestrator such as Docker Compose, Kubernetes, or Service Fabric. Here, we'll use Docker Compose. Docker Compose is great for local debugging and testing in the course of the development cycle. This is a very important video as it covers a major part of Docker .Net Core Microservices.
In this video we explains how to create a .Net Core Microservice / .NET Core Web API Microservice with MySQL Entity Framework Core [ASP.Net Core MySQL Docker / MySQL microservice].
Visual Studio provides the options to easily develop applications with Docker Support, Debug with Docker [Docker .Net Core Debug], and Deploy the Docker Container [Deploy .Net Core to Docker].
We are using the Official container image for MySQL on Linux for Docker Engine [MySQL Docker]. We'll use this docker image for creating a container for MySQL Database. Then the .Net Core application container can connect to the database container for read-write operations.
We are making use of Entity Framework Core (Entity Framework Core Tutorial) for MySQL Database operations [.Net Core Web API MySQL].
MySQL Connector/NET integrates support for Entity Framework Core (EF Core). The requirements and configuration of EF Core depend on the version of Connector/NET installed and the features that you require. When you install either the MySql.EntityFrameworkCore or MySql.Data.EntityFrameworkCore package, all of the related packages required to run your application are installed for you.
Visual Studio provides a consistent way to develop Docker containers and validate your application locally. You can run and debug your apps in Linux or Windows containers running on your local Windows desktop with Docker installed, and you don't have to restart the container each time you make a code change.
You can view what's going on inside the containers that host your app by using the Containers window. If you're used to using the command prompt to run Docker commands to view and diagnose what's going on with your containers, this window provides a more convenient way to monitor your containers without leaving the Visual Studio IDE.
What is Docker Compose?
Docker Compose is a tool for defining and running multi-container Docker applications. With Compose, you use a YAML file to configure your application’s services. Then, with a single command, you create and start all the services from your configuration.
Docker for .Net Core:
.NET Core can easily run in a Docker container. Containers provide a lightweight way to isolate your application from the rest of the host system, sharing just the kernel, and using resources given to your application. Learn how to use docker for .Net Core and deploy .Net Core to Docker.
.NET Core images
Official .NET Core Docker images are published to the Microsoft Container Registry (MCR) and are discoverable at the Microsoft .NET Core Docker Hub repository. Each repository contains images for different combinations of the .NET (SDK or Runtime) and OS that you can use.
Microsoft provides images that are tailored for specific scenarios. For example, the ASP.NET Core repository provides images that are built for running ASP.NET Core apps in production.
The tools included in Visual Studio for developing with Docker containers [.Net Core Docker Container] are easy to use, and greatly simplify building, debugging, and deployment for containerized applications. You can work with a container for a single project, or use container orchestration with Docker Compose or Service Fabric to work with multiple services in containers.
Docker support in Visual Studio:
Docker support is available for ASP.NET projects, ASP.NET Core projects, and .NET Core and .NET Framework console projects.
Video Chapters:
0:00 - Video Overview
2:04 - Project Setup
6:41 - API Development
9:09 - API Testing
13:27 - Adding Container Orchestration Support
Watch video .Net Core MySQL Microservice - Entity Framework Core MySQL online without registration, duration hours minute second in high quality. This video was added by user Coding Droplets 25 May 2022, don't forget to share it with your friends and acquaintances, it has been viewed on our site 15,528 once and liked it 321 people.