Рет қаралды 4,159
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:
github.com/syn...
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: cloud.synadia....
NATS is a connective technology powering modern distributed systems, unifying Cloud, On-Premise, Edge, and IoT.
Join the NATS Community on Slack: slack.nats.io
Learn More about NATS at docs.nats.io/