# README
Build, Test, Deploy & Operate Microservice Architectures Smarter at Scale
Microbus
is a holistic open source framework for the development, testing, deployment and operation of microservices at scale. It combines best-in-class OSS, tooling and best practices into a dramatically-simplified engineering experience.
Build entire cloud-enabled, enterprise-class and web-scalable solutions comprising a multitude of microservices, all on your local development machine. Deploy to suit your needs, as a standalone executable or individual containers.
π΄ Table of Content
π Introduction
βοΈ How It Works
π― Mission Statement
π¦ Get Started
π Learn More
β Get involved
βοΈ Contact us
π Legal
π Introduction
A microservice architecture is best suited for addressing the technical and organizational scalability challenges of a business as it scales. Without microservices, the complexity of a monolithic codebase often grows to a point where the engineering team can no longer innovate and collaborate efficiently. In most likelihood the entire solution will have to be rewritten at a critical point of the business - when it is growing rapidly - and at prohibitive cost. Investing in microservices from the get-go is a wise investment that mitigates this upside risk.
Building and operating microservices at scale, however, is quite difficult and beyond the skills of most engineering teams. It's easy to spin up one web server and call it a microservice but things get exponentially more complicated the more microservices are added to the mix. Many teams at some point either call it quits and stop adding microservices, or introduce complex tooling such as service meshes to help manage the complexity. Adding complexity to solve complexity is a self-defeating strategy: the chickens eventually come home to roost.
Microbus
takes a novel approach to the development, testing, deployment and troubleshooting of microservices, and eliminates much of the complexity of the conventional practice. Microbus
is a holistic open source framework that combines best-in-class OSS, tooling and best practices into a dramatically-simplified engineering experience that boosts productivity 4x.
Microbus
is the culmination of a decade of research and has been successfully battle-tested in production settings running SaaS solutions comprising many dozens of microservices.
βοΈ How It Works
Build your microservices on top of a Connector
construct and use its simple API to communicate with other microservices using familiar HTTP semantics. Under the hood, communication happens over a real-time messaging bus.
Microbus
brings together the patterns and best practices that get it right from the get-go, all in a developer-friendly holistic framework that throws complexity under the bus:
Reliable Transport
- Unicast 1:1 request/response
- Multicast 1:N publish/subscribe
- Multiplexed connections
- Dynamic service discovery
- Load balancing
- Time budget
- Ack or fail fast
- Locality-aware routing
- Connectivity liveness check
Precision Observability
- Structured logging
- Distributed tracing
- Metrics
- Error capture and propagation
And more
- Configuration
- Client stubs
- Live integration tests
- OpenAPI
- Graceful shutdown
- Distributed caching
- Linked static resources
- Recurring jobs
π― Mission Statement
Microbus
Β is a holisticΒ open source frameworkΒ for the development, testing, deployment and operation of microservices at scale.
Microbus
combines best-in-class OSS, tooling and best practices into anΒ elevated engineering experience that eliminates much of the complexity of the conventional practice.
Microbus
βs runtime substrate is highly performant, strongly reliable and horizontally scalable.
Microbus
conforms to industry standards and interoperates smoothly with existing systems.
π¦ Get Started
π Follow the quick start guide to set up your system and run the example app
π Go through the various examples
π Follow the step-by-step guide and build your first microservice
π Discover the power of code generation. It's totally RAD, dude
π Learn how to write thorough integration tests and achieve high code coverage
π Venture out and explore more on your own
π Ready? Build your own solution from scratch
π Learn More
Dig deeper into the technology of Microbus
and its philosophy.
Architecture
- Architectural diagram - A map of the building blocks of
Microbus
and how they stack up - Catalog of packages - Find your way around the codebase
Guides
- Code generation - Discover the power of
Microbus
's powerful RAD tool - Configuration - How to configure microservices
- Path arguments - Define wildcard path arguments in subscriptions
- HTTP magic arguments - Use HTTP magic arguments in functional endpoints to gain finer control over the HTTP request and response
- Integration testing - Test a multitude of microservices together
- Environment variables - Environment variables used to initialize microservices
- NATS connection settings - How to configure microservices to connect and authenticate to NATS
- RPC over JSON vs REST - Implement these common web API styles
- Adaptable topology - Grow the topology of your system to match your requirements
- Bootstrap a new project - Create a project for your solution
- Create a new microservice - Create a new microservice and add it to your solution
Under the Hood
- HTTP ingress proxy - The HTTP ingress proxy bridges the gap between HTTP and
Microbus
- Unicast messaging - Unicast enables bi-directional 1:1 request/response HTTP messaging between a client and a single server over the bus
- Multicast messaging - Extending on the unicast pattern, multicast enables bi-directional 1:N publish/subscribe HTTP messaging between a client and a multitude of servers over the bus
- Error capture - How and why errors are captured and propagated across microservices boundaries
- Time budget - The right way to manage client-to-server request timeouts
- Control subscriptions - Subscriptions that all microservices implement out of the box on port
:888
- Deployment environments - An application can run in one of 4 deployment environments:
PROD
,LAB
,LOCAL
andTESTING
- Events - How event-driven architecture can be used to decouple microservices
- Distributed tracing - Visualizing stack traces across microservices using OpenTelemetry and Jaeger
- OpenAPI - OpenAPI document generation for microservices
- Local development - Run an entire solution comprising a multitude of microservices in your local IDE
- Structured logging - JSON logging to
stderr
- Ack or fail fast - Acks signal the sender if its request was received
- Graceful shutdown - Graceful shutdown drains pending operations before termination
- Tickers - Tickers are jobs that run on a schedule
Design Choices
- Encapsulation pattern - The reasons for encapsulating third-party technologies
- JSON vs Protobuf - Why JSON over HTTP was chosen as the protocol
- Out of scope - Areas that
Microbus
stays out of
Miscellaneous
- Milestones - Each milestone of
Microbus
is maintained in a separate branch for archival purposes and to demonstrate the development process and evolution of the code.
β Get Involved
We want your feedback. Clone the repo, try things out and let us know what worked for you, what didn't and what you'd like to see improved.
Help us spread the word. Let your peers and the Go community know about Microbus
.
Give us a Github β. And ask all your friends to give us one too!
Reach out if you'd like to contribute code.
Corporation? Contact us for sponsorship opportunities.
βοΈ Contact Us
Find us at any of the following channels. We're looking forward to hearing from you so don't hesitate to drop us a line.
Find us at... | |
---|---|
Website | www.microbus.io |
info@microbus.io | |
Github | github.com/microbus-io |
linkedin.com/company/microbus-io | |
Slack | microbus-io.slack.com |
Discord | discord.gg/FAJHnGkNqJ |
r/microbus | |
YouTube | @microbus-io |
π Legal
The Microbus
framework is the copyrighted work of various contributors. It is licensed by Microbus LLC
- a Delaware limited liability company formed to hold the combined intellectual property of all contributors - under the Apache License 2.0.
Refer to the list of third-party open source software for licensing information of components used by the Microbus
framework.