Restructure with Microservice Architecture
Separate the OK.Biter.Api project to three or more microservice like BotCommandService, ListenerService, NotifyService.
BotCommandService
Responsible to manage Telegram Bot commands to list/create/update/delete subscriptions, alerts, prices, etc. and send subscription/alert updates to Message Queue.
ListenerService
Responsible to listen Binance Api WebSockets and send the prices to Message Queue.
NotifyService
Responsible to consume the Message Queue and decide to notify the users with messaging or calling.
Restructure with Microservice Architecture
Separate the OK.Biter.Api project to three or more microservice like BotCommandService, ListenerService, NotifyService.
BotCommandService
Responsible to manage Telegram Bot commands to list/create/update/delete subscriptions, alerts, prices, etc. and send subscription/alert updates to Message Queue.
ListenerService
Responsible to listen Binance Api WebSockets and send the prices to Message Queue.
NotifyService
Responsible to consume the Message Queue and decide to notify the users with messaging or calling.