DEV Community

Cover image for Creando una API Gateway en .NET Core con Ocelot
Jhon Marmolejo for Adevinta Spain

Posted on • Edited on

7

Creando una API Gateway en .NET Core con Ocelot

¿Tienes muchas APIS/microservicios y no quieres exponer los endpoints publicamente por temas de seguridad? ¿Tus apps externas necesitan hacer múltiples llamadas entre tus microservicios para poder obtener todo lo que necesitan? Un API Gateway te puede ayudar a solventar estos problemas.

En este video con @rogervinas te enseñaremos a como crear un API Gateway desde cero usando .Net Core y Ocelot y te explicaremos sus principales ventajas y como poder aplicarlo en tu trabajo.

YouTube:

0:00 Presentación
1:55 ¿Crees que repites mucho código en cada nuevo microservicio?
3:27 ¿Haces sufrir a tus frontends o quieres ser su backend favorito/a?
4:34 Flujo de llamadas sin Api Gateway
6:16 Flujo de llamadas con Api Gateway
7:28 ¿Que es una Api Gateway?
8:03 Api Gateways del mercado
9:07 ¡Demo time!
10:40 Añadimos Ocelot al proyecto
16:10 Rutas simples
22:28 Rutas con wildcard
28:42 Agregación
46:25 Autenticación
55:34 Autorización
1:00:35 Rate Limiting
1:03:12 Lógica Custom
1:11:15 Resumen

Y aquí tienes el código en Github (quitando la parte del bearer token en la configuración de ocelot)

Hasta la próxima!

Alt Text

Neon image

Serverless Postgres in 300ms (❗️)

10 free databases with autoscaling, scale-to-zero, and read replicas. Start building without infrastructure headaches. No credit card needed.

Try for Free →

Top comments (0)

Jetbrains image

Build Secure, Ship Fast

Discover best practices to secure CI/CD without slowing down your pipeline.

Read more

👋 Kindness is contagious

Dive into this insightful write-up, celebrated within the collaborative DEV Community. Developers at any stage are invited to contribute and elevate our shared skills.

A simple "thank you" can boost someone’s spirits—leave your kudos in the comments!

On DEV, exchanging ideas fuels progress and deepens our connections. If this post helped you, a brief note of thanks goes a long way.

Okay