Re:Alchemy Micro-Service Framework: Using RabbitMQ Instead o...
by pm90 on Monday March 14, 2016 @08:27PM
(#11286626)
Great comment. One thing I don't like very much about microservices is simply that my service often will have some such hard dependency. e.g. if the logging service is down, I lose all logs-based statistics. If the authentication microservice is down, I'm screwed. The parent comment made the excellent point about SPOF, but it seems like for microservices to work correctly, there will always be some SPOFs.
Maybe I'm being too pessimistic. I use microservices, but without significant engineering rigor, I think its a recipe for disaster.
Re:Alchemy Micro-Service Framework: Using RabbitMQ Instead o...
by zeisss on Tuesday March 15, 2016 @05:50AM
(#11288515)
> If the authentication microservice is down, I'm screwed.
Well, make sure your sevice is not dependent on those services then. Use signed tokens to only rely on the authenticator for logins. everything afterwards can work it our by themself.
logging: keep your stuff in a queue or logfile, until the log service is back up.
Message brokers like RabbitMQ give you a lot of benefit and introduce only a small number of failure modes. You can obviate tricky service discovery boot orders, do RPC with without caring about whether about your server could be restarted and of course you get a good implementation of pub-sub too. If you stay away from poorly considered high availability schemes I am absolutely fine with recommending it for intra-service communication.