andrii-itdev / InsightFlow

Other
0 stars 0 forks source link

Create ProcessHub Monitor Service #1

Open andrii-itdev opened 11 months ago

andrii-itdev commented 11 months ago

ProcessHub Monitor Service specifications

Serves as a communication proxy for clients to expose information about long-running, resource-intensive processes. Types of processes: data processing, report generation, or file uploads. Every process may consist of separate tasks.

Key points:

Notifies the client when the process changes its status. Any changes to the task status should be persisted in the database. Users should be provided the ability to cancel the processes/tasks. Error handling mechanisms should be implemented to deal with task failures and cancellations.

Endpoints:

Notification Mechanism:

Set up a mechanism to notify clients when tasks are completed. This can be achieved through various methods such as:

Security:

Only authorized users who have permission can initiate tasks and access task information.

Testing

All the endpoints should be covered with tests. Edge cases for error handling, security mechanisms, and task/process cancellation should be considered.