Microservice Solutions with Ocelot on Azure

Naeem Ahmad 0 Reputation points
2024-11-16T17:25:33.21+00:00

I am looking to deploy multiple microservices using Azure Kubernetes Service (AKS). All communication between these microservices is routed through an API Gateway. The services include:

API Gateway (Ocelot)

Auth API

Core Service

RabbitMQ

These are all .NET Core web APIs. What is the process for deploying them on AKS?

Azure Container Registry
Azure Container Registry
An Azure service that provides a registry of Docker and Open Container Initiative images.
468 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,707 questions
Azure Kubernetes Service (AKS)
Azure Kubernetes Service (AKS)
An Azure service that provides serverless Kubernetes, an integrated continuous integration and continuous delivery experience, and enterprise-grade security and governance.
2,207 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Mounika Reddy Anumandla 1,300 Reputation points Microsoft Vendor
    2024-11-18T03:16:33.7266667+00:00

    Hi Naeem Ahmad,

    Welcome to the Microsoft Q&A Platform!
    Apologies in delayed response on this.

    The following document provides information how to Implement API Gateways with Ocelot and also Using Kubernetes Ingress plus Ocelot API Gateways. https://zcusa.951200.xyz/en-us/dotnet/architecture/microservices/multi-container-microservice-net-applications/implement-api-gateways-with-ocelot

    Also, on ocelot documentation, there are details "If you have services deployed in Kubernetes you will normally use the naming service to access them. Ocelot will call the k8s endpoints API in a given namespace to get all of the endpoints for a pod and then load balance across them". Please check this document for more details on this.

    The document shows, having an ingress Nginx tier in Kubernetes in front of the web applications plus the several Ocelot API Gateways / BFF is the ideal architecture, as shown in the following diagram.

    User's image

    Additional document for reference: https://stackoverflow.com/questions/64828846/ocelot-api-gateway-implementation-in-aks

    Hope this helps!

    If you have any further queries, do let us know.

    If the answer is helpful, please click "Accept Answer" and "Upvote it."


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.