pnxtech / hydra

A light-weight library for building distributed applications such as microservices
https://www.hydramicroservice.com
MIT License
645 stars 54 forks source link

Messaging performance optimization #170

Closed emadum closed 6 years ago

emadum commented 6 years ago

See issue #169

First pass, please review!

Couple items for discussion:

  1. Not sure what we want the message TTL to be. They should get consumed almost immediately, so we can expire them quite quickly; unless we want to keep them around for a while if something goes wrong, which leads to...

  2. Error handling. Under normal conditions the set/get of the message payload shouldn't ever fail. Do we want to retry or just log the error and drop the message, as I implemented it in this PR?

cjus commented 6 years ago

Closing this issue for now. We're performing extensive performance testing which may result in an update.