News for hackers. Stuff that matters.
Re:Microservices – Demo Project in Python by zepolen on Wednesday December 02, 2015 @03:28AM (#10661688)
This shows a few of the drawbacks of microservices one of which is memory. This project used about 15mb per python instance = 60mb total when the entire stack is launched.

Once you load a few largish python libraries like sqlalchemy you can get up to 100mb per instance x 4 = 400mb.

What would be interesting is a framework that allows you to run the entire microservice stack in a single interpreter (shouldn't be hard with flask blueprints) and break off the subapps as necessary when the need arises.

You would need a way of managing the current endpoints for each service vs a requests.get('http://localhost:ARBITRARY_PORT') in the code, but if done correctly would make managing a cluster much simpler.

Does anyone know if such a thing exists?

Re:Microservices – Demo Project in Python by prince_af_123 on Wednesday December 02, 2015 @09:33AM (#10663110)
> What would be interesting is a framework that allows you to run the entire microservice stack in a single interpreter (shouldn't be hard with flask blueprints) and break off the subapps as necessary when the need arises.

The idea behind microservices is to have small services running on their own processes and communicating using a light-weight mechanism. This means you could write a service in Java, another in Python, Node.js etc. (i.e. pick the most appropriate language for the task)

Re:Microservices – Demo Project in Python by z0mbix on Wednesday December 02, 2015 @04:36AM (#10661911)
Have you looked at Kong? (https://getkong.org)