Ask HN: Do you use microservices?
Hey all,
Just wondering what percentage of people here are adopting this trend of microservices? What platforms , messaging layers, protocols and patterns are you using to aid in this? What are the pain points?
I am quite heavily invested in the world of microservices and would like to see if anyone out there does it differently.
Cheers
(
7 comments
| 6 points
| on HN
)
About the only thing I need to really work on is directory/registration (at the moment I'm using .env files with the URLs to different micro-services in each micro-service, mainly as it's PoC and I'm running it all on a single box)
Each microservice was a Django app, messaging was handled by RabbitMQ. I used Celery as a nice framework around messaging and asynchronous processing.
There was a thin REST layer for mobile apps to consume. It was basically just an Nginx proxy with a small Python app sending tasks to remote Celery workers and returning very fast response while the logic is handled asynchronously (this is pretty cool for payment processing, sending emails, writing entries to ledgers etc).
Big advantage is this is quite easy to scale, as you can just create new EC2 instances with workers.
I have also implemented several microservices in Go last year.