📍 Introduction
🙂 As we have discussed in our previous blog "Monolithic vs Microservices: A Practical Approach". But today we're going to...
For further actions, you may consider blocking this person and/or reporting abuse
Crisp and nice.
Nice! I used
node-http-proxy
in the past to create a gateway, didn't realize thatfast-gateway
existed, it looks very clean 👍Thanks Rense. Highly appreciate 😊
You are using prefix as "/order" so I think your order server.js will have:
app.get("/order"
And not:
app.get("/order-list"
Kindly correct me if I am wrong.
You'll type localhost:9091/order and it will redirect you to the localhost:8081/
When I call localhost:9091/order on my local, it I am getting 'page can’t be found' error. Am I doing something wrong?
Start all the services including order payment and gateway
Eu creio que não, ele vai ter as rotas com o /order como prefixo, ou seja:
/order
e/order/order-list
True
This is very crisp and well done.
If you don't want to spend a lot of time doing config, we at Snow Owl have enabled request-level routing, monitoring, and transformations for microservices without using Kubernetes. This is done by creating a reverse proxy + API gateway + rules engine.
It's also SaaS, no-code, serverless, and sits on the edge. , we set up in 15 minutes and scale easily. DM me if you want to beta test! Snowowl.co
Ok.
When will your site have docs, screenshots and info?
You can check out docs.snowowl.co for docs, screenshots, and video. Also if you drop your email in the homepage I'll send you an email with beta login!
what is the difference between
let
andconst
? 🤔const
is a signal that the identifier won't be reassigned.let
is a signal that the variable may be reassignedHelpful
Good demo! For simple routing/gateway it can also be done by setting up a reverse proxy with nginx.
Already done in the previous blog
Great read
Easy to Understand. Thanks for this
Thanks 🙂
Highly appreciated. Your posit is motivational. Thanks
Thanks man ☺😊
Very good intro.
Any thoughts on covering also a serverless node.js approach?
Will do that in the next one... Thanks
Nice!
Thanks Gulshan
Would you suggest a directory structure for Microservice in Nodejs?
It is written in the blog
Easy to Understand. Looking forward to implement this. Can I have more details on this.
Thanks. Will do soon 😃
can you do something like that but using docker?
Sure, we can do that. Wait for more blogs in future, will do that
Nice! thanks, nice blog
Thanks ☺
Nice, very neat.
Usually in a monorepo it's helpful to have a packages manager such as Turborepo or NX to install all the packages and dependencies.
Noted Nadav. Thanks for your view
Thank you. Please continue for in-depth tutorials.
Sure. No problem. Kindly share the content with your friends👭👬
Cool stuff!
Thanks bruh
Nice content
Thanks brother
build a Hexagonal Architecture Micro Service
Hello, what tool did you use to make the diagram?
I did make it in GoodNotes app in ipad
great
Nice and brief
Can anyone tell if this way is better than using nginx proxy with upstream and proxy_pass, if so why?
You can go with NGINX too, We did covered it in our previous blog
Very well articulated
localhost:9001/order/order-list
Very insightful
Coul be interesting implement an authentication service to this architecture in order to understand how it works : api_gateway, auth_service, service1, service2.
Ok, Richard Noted. Will do it in our next blog. Or maybe I will leave a reference to follow soon. Thanks for your time 🙂
Better use nest js framework.. gives lot options for communicating with other services and for rest use express as it is in the nest.
Will look into it. Thanks for pointing out buddy