Перейти к содержимому

Give your Go app superpowers with an Embedded NATS Server

Synadia

0:00 / 0:00

Give your Go app superpowers with an Embedded NATS Server

15 767 просмотров · 2 года назад
Synadia
7,07 тыс. подписчиков
15 767 просмотров · 2 года назад
One powerful, but lesser known feature of the NATS server is that, if you are using the Go programming language, you can embed the NATS server directly into your application. Not only can you bake a NATS server directly into your application binary, but you can even connect to that NATS server without going through a network interface, making NATS an awesome choice for building modular monoliths, or for simply the foundation for any programs connectivity, or a data layer with lots of options for storing and moving that data. Check out our example code here: https://github.com/synadia-io/rethink... 00:00 - Intro 01:04 - Why embed a NATS Server? 05:35 - Use Cases 07:28 - Example: Embedding NATS Server 13:50 - Configuring In Process Connections 18:40 - Benchmarking In Process vs localhost 19:44 - Enabling JetStream and Leafnode to Synadia Cloud 26:10 - Wrap up! Don't want to host NATS yourself? Sign up for Synadia Cloud for free: https://cloud.synadia.com/ NATS is a connective technology powering modern distributed systems, unifying Cloud, On-Premise, Edge, and IoT. Join the NATS Community on Slack: https://slack.nats.io Learn More about NATS at https://docs.nats.io/