You have a microservice architecture and lets say you have a data source with sport odds which will send you data via RabbitMQ with two message types:
Odds data message:
[
{
matchId: number,
group: number,
odds: [number, number],
},
...
]
Disable group message:
[{
group: number,
reason: string,
}, ...]
You don't know list of possible group IDs
You have to write a backend for an administrator panel to manage a whitelist for odds groups with next requirements:
- You have to send Odds data messages into another service (better by rabbitmq, but you could mock it) but only if they are whitelisted
- It's possible to enable\disable each group
- By default all new groups should be disabled
- Admin can't enable\disable group if you have received Disable group message until you read a reason
- (Optional) add a possibility to run your backend in multiple instances
You are able to use whatever you want but we would like to see:
- Koa/express similar framework
- Docker
- In case of multiple instances we would like to see Reddis
Feel free to contact us and ask any questions before you start
It's pretty simple task so it won't take longer then 4 hours