Go channels at horizontal scale (powered by message queues)
Go
1,542
89 commits
updated Jul 22, 2022

vice.Transport to change underlying queueing technologies transparentlyPROJECT STATUS: v1 released
This code receives names on the |names| queue, and sends greetings on the |greetings|
queue:
// get a Go channel that will receive messages on the
// |names| queue
names := transport.Receive("names")
// get a Go channel that will send messages on the
// |greetings| queue
greetings := transport.Send("greetings")
// respond to |names| messages with |greetings|
for name := range names {
greetings <- []byte("Hello " + string(name))
}
Send and Receive methods to get channels, which you can then use as normalErrChan() error channel to make sure the underlying queue technology is healthygo get github.com/matryer/vice/...Read the blog post: Introducing vice: Go channels across many machines
Special thanks go to David Hernandez, Jason Hancock and Piotr Rojek for their support on this project.
Overall
Maintained
Code review
Go module
Latest release
Releases this year
1,121 followers · starred Jul 2017
656 followers · starred Aug 2017
71 followers · starred Jul 2017
217 followers · starred Aug 2017
Go channels at horizontal scale (powered by message queues)
Go
1,542
89 commits
updated Jul 22, 2022

vice.Transport to change underlying queueing technologies transparentlyPROJECT STATUS: v1 released
This code receives names on the |names| queue, and sends greetings on the |greetings|
queue:
// get a Go channel that will receive messages on the
// |names| queue
names := transport.Receive("names")
// get a Go channel that will send messages on the
// |greetings| queue
greetings := transport.Send("greetings")
// respond to |names| messages with |greetings|
for name := range names {
greetings <- []byte("Hello " + string(name))
}
Send and Receive methods to get channels, which you can then use as normalErrChan() error channel to make sure the underlying queue technology is healthygo get github.com/matryer/vice/...Read the blog post: Introducing vice: Go channels across many machines
Special thanks go to David Hernandez, Jason Hancock and Piotr Rojek for their support on this project.
Overall
Maintained
Code review
Go module
Latest release
Releases this year
1,121 followers · starred Jul 2017
656 followers · starred Aug 2017
71 followers · starred Jul 2017
217 followers · starred Aug 2017