Hello everyone, I am new to ASP.NET Core and have some questions.
My system which has a worker service, a grpc service, a web API and mobile and web clients as below architecture. The system is monitoring sensor temperature, if temperature is out of threshold, the client will receive a push notification of warning. So the worker service is for monitoring temperature. The grpc service is for turning on a light.
1. Is my system is a microservice architecture system? (I'm not clearly)
2. How should I push notification to clients (mobile app) when temperature is out of threshold? I use Firebase Cloud Messaging to push notification but where should I do send request to FCM? Worker service send request to FCM directly or worker send request to web API and web API send request to FCM?
3. If the temperature is out of threshold I will send notification to clients but I think I send once for per warning. If the user receive notification and next time if temperature is out of threshold again I will send other notification. How can I implement this?
4. I want to log (save) temperature to database every 5 minutes for history view. And where should I do implement database connection? worker service directly write to database or worker service send temperature data to web api and web api write to database?
Thank you for your help.