C
C#Alex

✅ Should I create single or multiple background services

I need to fetch the same data in background service. I need to fetch it and store to cache every 5 minutes and every 60 minutes to mongodb. Should I create one background service that runs every 5 minutes and count when it runs 12 times (60 minutes) to store data to mongodb or create a separate background service that runs every 60 minutes?
D
Denis12d ago
I think a single service with multiple jobs should be sufficient