Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Introduction to NATS

Introduction to NATS

Demo in github repository : https://github.com/rubiagatra/intro-nats

Ngalam Backend Community

July 26, 2019
Tweet

More Decks by Ngalam Backend Community

Other Decks in Science

Transcript

  1. Introduction to NATS: A high-performance messaging system as a solution

    for communication between services DONI RUBIAGATRA kumparan
  2. About me • Doni Rubiagatra, @rubiagatra • Bachelor of Mathematics

    @ ITS Surabaya • Software Engineer kumparan
  3. • Simple subject: kum • Hierarchically Tokenized: kum.foo • Wildcard

    subscriptions kum.* matches kum.foo and kum.bah. kum.*.bar matches kum.a.bar and kum.b.bar. foo.> matches any of the above > matches everything in NATS A subject is simply a string representing an interest in data.
  4. • Single binary • 7.8 MB docker image with no

    external dependencies • “Text-based” protocol with just a handful of verbs • Low Configuration Clients only need a url and credentials Servers auto-discover You can share configuration files amongst servers • Simple and Straightforward API
  5. • At most once (Core) No guarantee of delivery -

    messages can be lost - applications must detect and handle lost messages • At least once (Streaming) A message will always be delivered, but in certain cases may be delivered more than once NATS Support two delivery modes
  6. • Introduction to NATS - Video • https://nats.io/ • Practical

    NATS From Beginner to Pro - Waldemar Quevedo References & Check this one out