All Projects → ThreeDotsLabs → Watermill

ThreeDotsLabs / Watermill

Licence: mit
Building event-driven applications the easy way in Go.

Programming Languages

go
31211 projects - #10 most used programming language
HTML
75241 projects
shell
77523 projects
Makefile
30231 projects

Projects that are alternatives of or similar to Watermill

Benthos
Fancy stream processing made operationally mundane
Stars: ✭ 3,705 (+5.74%)
Mutual labels:  event-sourcing, kafka, stream-processing, rabbitmq, nats, cqrs
Eventflow.example
DDD+CQRS+Event-sourcing examples using EventFlow following CQRS-ES architecture. It is configured with RabbitMQ, MongoDB(Snapshot store), PostgreSQL(Read store), EventStore(GES). It's targeted to .Net Core 2.2 and include docker compose file.
Stars: ✭ 131 (-96.26%)
Mutual labels:  event-sourcing, event-driven, sagas, rabbitmq, cqrs
Pos
Sample Application DDD, Reactive Microservices, CQRS Event Sourcing Powered by DERMAYON LIBRARY
Stars: ✭ 207 (-94.09%)
Mutual labels:  reactive, event-sourcing, event-driven, kafka, cqrs
node-cqrs-saga
Node-cqrs-saga is a node.js module that helps to implement the sagas in cqrs. It can be very useful as domain component if you work with (d)ddd, cqrs, eventdenormalizer, host, etc.
Stars: ✭ 59 (-98.32%)
Mutual labels:  events, cqrs, sagas, event-sourcing
OpenSleigh
OpenSleigh is a Saga management library for .NET Core.
Stars: ✭ 198 (-94.35%)
Mutual labels:  events, cqrs, sagas, rabbitmq
ftgogo
FTGOGO - event-driven architecture demonstration application using edat
Stars: ✭ 82 (-97.66%)
Mutual labels:  cqrs, sagas, event-sourcing, event-driven
Event Sourcing Castanha
An Event Sourcing service template with DDD, TDD and SOLID. It has High Cohesion and Loose Coupling, it's a good start for your next Microservice application.
Stars: ✭ 68 (-98.06%)
Mutual labels:  event-sourcing, event-driven, kafka, cqrs
Goes
Go Event Sourcing made easy
Stars: ✭ 144 (-95.89%)
Mutual labels:  events, event-sourcing, event-driven, cqrs
football-events
Event-Driven microservices with Kafka Streams
Stars: ✭ 57 (-98.37%)
Mutual labels:  cqrs, event-sourcing, stream-processing, event-driven
Pitstop
This repo contains a sample application based on a Garage Management System for Pitstop - a fictitious garage. The primary goal of this sample is to demonstrate several software-architecture concepts like: Microservices, CQRS, Event Sourcing, Domain Driven Design (DDD), Eventual Consistency.
Stars: ✭ 708 (-79.79%)
Mutual labels:  event-sourcing, event-driven, rabbitmq, cqrs
Event Sourcing Jambo
An Hexagonal Architecture with DDD + Aggregates + Event Sourcing using .NET Core, Kafka e MongoDB (Blog Engine)
Stars: ✭ 159 (-95.46%)
Mutual labels:  event-sourcing, event-driven, kafka, cqrs
Digital Restaurant
DDD. Event sourcing. CQRS. REST. Modular. Microservices. Kotlin. Spring. Axon platform. Apache Kafka. RabbitMQ
Stars: ✭ 222 (-93.66%)
Mutual labels:  event-sourcing, kafka, rabbitmq, cqrs
Eventflow
Async/await first CQRS+ES and DDD framework for .NET
Stars: ✭ 1,932 (-44.86%)
Mutual labels:  events, sagas, rabbitmq, cqrs
Dotnet New Caju
Learn Clean Architecture with .NET Core 3.0 🔥
Stars: ✭ 228 (-93.49%)
Mutual labels:  event-sourcing, event-driven, kafka, cqrs
Sephsplace
My own version of r/place, done in a weekend
Stars: ✭ 119 (-96.6%)
Mutual labels:  event-sourcing, kafka, cqrs
Vertex
Vertex is a distributed, ultimately consistent, event traceable cross platform framework based on Orleans, which is used to build high-performance, high throughput, low latency, scalable distributed applications
Stars: ✭ 117 (-96.66%)
Mutual labels:  event-sourcing, event-driven, cqrs
Event Driven Spring Boot
Example Application to demo various flavours of handling domain events in Spring Boot
Stars: ✭ 194 (-94.46%)
Mutual labels:  events, event-sourcing, event-driven
Flink Learning
flink learning blog. http://www.54tianzhisheng.cn/ 含 Flink 入门、概念、原理、实战、性能调优、源码解析等内容。涉及 Flink Connector、Metrics、Library、DataStream API、Table API & SQL 等内容的学习案例,还有 Flink 落地应用的大型项目案例(PVUV、日志存储、百亿数据实时去重、监控告警)分享。欢迎大家支持我的专栏《大数据实时计算引擎 Flink 实战与性能优化》
Stars: ✭ 11,378 (+224.71%)
Mutual labels:  kafka, stream-processing, rabbitmq
Messagebus
A MessageBus (CommandBus, EventBus and QueryBus) implementation in PHP7
Stars: ✭ 178 (-94.92%)
Mutual labels:  event-sourcing, rabbitmq, cqrs
Openmessaging Benchmark
OpenMessaging Benchmark Framework
Stars: ✭ 184 (-94.75%)
Mutual labels:  kafka, rabbitmq, nats

Watermill

CircleCI Go Report Card codecov

Watermill is a Go library for working efficiently with message streams. It is intended for building event driven applications, enabling event sourcing, RPC over messages, sagas and basically whatever else comes to your mind. You can use conventional pub/sub implementations like Kafka or RabbitMQ, but also HTTP or MySQL binlog if that fits your use case.

Goals

  • Easy to understand.
  • Universal - event-driven architecture, messaging, stream processing, CQRS - use it for whatever you need.
  • Fast (see Benchmarks).
  • Flexible with middlewares, plugins and Pub/Sub configurations.
  • Resilient - using proven technologies and passing stress tests (see Stability).

Getting Started

Pick what you like the best or see in order:

  1. Follow the Getting Started guide.
  2. See examples below.
  3. Read the full documentation: https://watermill.io/

Examples

Background

Building distributed and scalable services is rarely as easy as some may suggest. There is a lot of hidden knowledge that comes with writing such systems. Just like you don't need to know the whole TCP stack to create a HTTP REST server, you shouldn't need to study all of this knowledge to start with building message-driven applications.

Watermill's goal is to make communication with messages as easy to use as HTTP routers. It provides the tools needed to begin working with event-driven architecture and allows you to learn the details on the go.

At the heart of Watermill there is one simple interface:

func(*Message) ([]*Message, error)

Your handler receives a message and decides whether to publish new message(s) or return an error. What happens next is up to the middlewares you've chosen.

You can find more about our motivations in our Introducing Watermill blog post.

Pub/Subs

All publishers and subscribers have to implement an interface:

type Publisher interface {
	Publish(topic string, messages ...*Message) error
	Close() error
}

type Subscriber interface {
	Subscribe(ctx context.Context, topic string) (<-chan *Message, error)
	Close() error
}

Supported Pub/Subs:

All Pub/Subs implementation documentation can be found in the documentation.

Contributing

Please check our contributing guide.

Stability

Watermill v1.0.0 has been released and is production-ready. The public API is stable and will not change without changing the major version.

To ensure that all Pub/Subs are stable and safe to use in production, we created a set of tests that need to pass for each of the implementations before merging to master. All tests are also executed in stress mode - that means that we are running all the tests 20x in parallel.

All tests are run with the race condition detector enabled (-race flag in tests).

For more information about debugging tests, you should check tests troubleshooting guide.

Benchmarks

Initial tools for benchmarking Pub/Subs can be found in watermill-benchmark.

All benchmarks are being done on a single 16 CPU VM instance, running one binary and dependencies in Docker Compose.

These numbers are meant to serve as a rough estimate of how fast messages can be processed by different Pub/Subs. Keep in mind that the results can be vastly different, depending on the setup and configuration (both much lower and higher).

Here's the short version for message size of 16 bytes.

Pub/Sub Publish (messages / s) Subscribe (messages / s)
Kafka (one node) 63,506 110,811
Kafka (5 nodes) 70,252 117,529
NATS 76,208 38,169
SQL (MySQL) 7,299 154
SQL (PostgreSQL) 4,142 98
Google Cloud Pub/Sub 7,416 39,591
AMQP 2,408 10,608
GoChannel 272,938 101,371

Support

If you didn't find the answer to your question in the documentation, feel free to ask us directly!

Please join us on the #watermill channel on the Three Dots Labs Discord.

Every bit of feedback is very welcome and appreciated. Please submit it using the survey.

Why the name?

It processes streams!

License

MIT License

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].