airbnb service auto discovery

13
AirBnB Service Autodiscovery Stockholm Python Meetup Jun 16, 2016

Upload: ilian-iliev

Post on 13-Apr-2017

4.018 views

Category:

Software


0 download

TRANSCRIPT

AirBnB Service Autodiscovery

Stockholm Python MeetupJun 16, 2016

About me

Ilian Iliev

Platform Engineer

[email protected]

www.ilian.io

Starting as a monolith● Easy at the beginning● Hard to scale later● Hard to detach apps● Solution?

Services● Small(er)● “Independent”● Talking to each other● Easier to deploy and scale● Is SOA the ultimate solution?

New problems● Routing traffic to the correct service● Adding and removing new instances to the pool● What if an instance dies?

A perfect solution requirements● Routing● Load balancing● Health status● Debug single node● Introspection● Safe to changes in the pool ● No single point of failure

Suboptimal solutions● DNS● Central load balancing● In App registration/discovery

Smart stack● Nerve - service registration● Synapse - service discovery

Nerve

Synapse

Benefits● Immediate discovery● Problem are detected on small intervals● Easy to debug● Introspection● Distributed infrastructure

The future● Zookeeper is still critical● Dynamic Nerve config

Questions?