What is a microservices? A tale of computer company. A presentation of micro-services and how to create them with ZeroServices, a python micro-services framework.
ZEROSERVICES • A framework for all theses bricks • And a reference implementation for all of them • Python 3.4 • Asynchronous / Asyncio • Changes are broadcasted as events
WHAT IT LOOKS LIKE? RESOURCE SERVICE loop = asyncio.get_event_loop() medium = ZeroMQMedium(loop, UdpDiscoveryMedium) service = ResourceService('power_service', medium) service.register_resource(MongoDBCollection("power", "db")) loop.run_until_complete(todo.start()) loop.run_forever()
PROBLEMS WITH MICRO- SERVICES • Micro-service needs to know where are the others. • Made testing difficult. • Framework should abstract that. • Start without DevOps burdens.