Microservices API Gateways — Ocelot for .NET Core + Video

Anup Marwadi
Sep 7, 2018 · 5 min read
Image for post
Image for post
Ocelot API Gateway using ASP.NET Core, Mac OSX and Visual Studio Code

If you are building Microservices, you are going to need an API Gateway.

Why do I need an API Gateway?

Microservices Example — E-Commerce API

Ocelot API with ASP.NET Core 2.1 and VS Code/Mac OS X
Image for post
Image for post
Folder Structure for the API Gateway
Image for post
Image for post
Create A Solution Using ‘dotnet new sln’
Image for post
Image for post
Add Existing Project To Solution (Solution Explorer Plugin)
Image for post
Image for post
Catalog API on Port 7001
Image for post
Image for post
Orders API on Port 7002
Image for post
Image for post
Add ocelot.json to the App Configuration
Image for post
Image for post
Add Ocelot Plumbing in Startup.cs
Image for post
Image for post
Example of Microservice redirects using ocelot.json

HyperTrends

The Official Medium for Software Development Company —…

Anup Marwadi

Written by

Tech Entrepreneur. Product Builder. Student for Life. CEO - HyperTrends

HyperTrends

The Official Medium for Software Development Company — HyperTrends Global Inc.

Anup Marwadi

Written by

Tech Entrepreneur. Product Builder. Student for Life. CEO - HyperTrends

HyperTrends

The Official Medium for Software Development Company — HyperTrends Global Inc.

Welcome to a place where words matter. On Medium, smart voices and original ideas take center stage - with no ads in sight. Watch

Follow all the topics you care about, and we’ll deliver the best stories for you to your homepage and inbox. Explore

Get unlimited access to the best stories on Medium — and support writers while you’re at it. Just $5/month. Upgrade

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store