AirBnB service auto discovery

  • View
    4.018

  • Download
    0

  • Category

    Software

Preview:

Citation preview

AirBnB Service Autodiscovery

Stockholm Python MeetupJun 16, 2016

About me

Ilian Iliev

Platform Engineer

ilian@lifesum.com

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?

Recommended