Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Next »

With a design largely defined, there were a lot of questions yet to be answered and decisions yet to be made. So we decided to have a whiteboard session to map the areas that we thought we needed to address before continuing with the new implementation.

Decisions

Queuing system

  • We agreed on using RabbitMQ as it seemed to be the most user friendly with possibly the largest market share
  • Multiple queues will be used with the basis of a singular inbound queue, multiple internal ones and possibly multiple outbound queues
  • The queues will use binding keys to route the messages rather than headers
  • As a default, auto ack will be disabled which means that a consumer will need to manually acknowledge a message in order for it to be removed from the queue. This should only be done after the message has been processed and and output to be either pushed on another queue or saved. This ensures that messages will not be lost when consumers fail
  • We will store the amount of retries on the message and a max of 10 retries will be allowed
  • The wait time (back off) algo will be 1 minute before it can be processed again
  • We'll attempt to use an intelligent circuit breaker which will look at the type of exception and judge whether it would make sense to retry. Errors such as HTTP 400's wont make sense to retry as it will be an issue with the client (which will most likely require dev)
  • Dead letters will be split between different dead letter queues by type
  • We'll need to come back to rate limiting as we do not want to overwhelm our own systems
    • we'll need to base this on some actual metrics
  • We'll have duplicate queues so that we can create an audit service to record message/events
    • The granularity of audits will need to be defined as too granular may create an influx of data which may not be useful
  • No labels