Project Name | Stars | Downloads | Repos Using This | Packages Using This | Most Recent Commit | Total Releases | Latest Release | Open Issues | License | Language |
---|---|---|---|---|---|---|---|---|---|---|
Hoppscotch | 54,804 | 2 | a day ago | 9 | February 07, 2023 | 184 | mit | TypeScript | ||
👽 Open source API development ecosystem - https://hoppscotch.io | ||||||||||
Locust | 22,187 | 35 | 69 | a day ago | 247 | July 25, 2023 | 20 | mit | Python | |
Write scalable load tests in plain Python 🚗💨 | ||||||||||
Vert.x | 13,767 | 7,633 | 658 | a day ago | 136 | June 22, 2023 | 283 | other | Java | |
Vert.x is a tool-kit for building reactive applications on the JVM | ||||||||||
Httpbin | 11,927 | 549 | 6 | a month ago | 13 | May 08, 2018 | 179 | isc | Python | |
HTTP Request & Response Service, written in Python + Flask. | ||||||||||
Pollyjs | 9,964 | 43 | 126 | 8 days ago | 47 | July 20, 2023 | 37 | apache-2.0 | JavaScript | |
Record, Replay, and Stub HTTP Interactions. | ||||||||||
Gopher Reading List | 7,693 | 18 days ago | 7 | apache-2.0 | ||||||
A curated selection of blog posts on Go | ||||||||||
Artillery | 6,952 | 171 | 70 | a day ago | 173 | August 04, 2023 | 403 | mpl-2.0 | JavaScript | |
Load testing at cloud-scale, as easy as 1-2-3. Serverless & distributed out-of-the-box. Never fail to scale! | ||||||||||
Rest Assured | 6,515 | 7,364 | 481 | 3 days ago | 32 | June 16, 2023 | 527 | apache-2.0 | Java | |
Java DSL for easy testing of REST services | ||||||||||
Hurl | 6,231 | 2 | 19 hours ago | 14 | June 30, 2023 | 111 | apache-2.0 | Rust | ||
Hurl, run and test HTTP requests with plain text. | ||||||||||
Watermill | 6,093 | 182 | 2 days ago | 45 | July 16, 2023 | 84 | mit | Go | ||
Building event-driven applications the easy way in Go. |
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.
Pick what you like the best or see in order:
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.
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:
github.com/ThreeDotsLabs/watermill-amqp/v2
)
github.com/ThreeDotsLabs/watermill-bolt
)
github.com/ThreeDotsLabs/watermill-firestore
)
github.com/ThreeDotsLabs/watermill-googlecloud
)
github.com/ThreeDotsLabs/watermill-http
)
github.com/ThreeDotsLabs/watermill-io
)
github.com/ThreeDotsLabs/watermill-kafka/v2
)
github.com/ThreeDotsLabs/watermill-nats
)
github.com/ThreeDotsLabs/watermill-redisstream
)
github.com/ThreeDotsLabs/watermill-sql/v2
)
All Pub/Subs implementation documentation can be found in the documentation.
Can't find your favorite Pub/Sub or library integration? Check Awesome Watermill.
If you know another library or are an author of one, please add it to the list.
Please check our contributing guide.
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.
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) |
---|---|---|
GoChannel | 331,882 | 118,943 |
Redis Streams | 61,642 | 11,213 |
NATS Jetstream (16 Subscribers) | 49,255 | 33,009 |
Kafka (one node) | 44,090 | 108,285 |
SQL (MySQL) | 5,599 | 167 |
SQL (PostgreSQL, batch size=1) | 3,834 | 455 |
Google Cloud Pub/Sub | 3,689 | 30,229 |
AMQP | 2,702 | 13,192 |
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.
It processes streams!