stakevrun / db

GNU Affero General Public License v3.0
0 stars 0 forks source link

Develop a Service to Act on Changes in the Database #4

Closed LookingForOwls closed 7 months ago

LookingForOwls commented 7 months ago

Description

Create a service designed to monitor and act upon changes within the database. This service will detect updates and trigger predefined actions in response to significant events such as creating or exiting a validator, setting graffiti, and entering or leaving the smoothing pool.

Objectives

Requirements

  1. Change Detection Mechanism: Develop a mechanism to efficiently detect specific changes in the database, focusing on:
    • Creating a validator
    • Exiting a validator
    • Setting graffiti
    • Entering or leaving the smoothing pool
  2. Action Triggers: Define and implement triggers that activate specific actions or workflows in response to detected changes, ensuring that each event type has a corresponding, predefined action.
  3. Configurable Actions: Allow for the configuration of actions that the service will execute upon detecting changes. These actions could include notifications, broadcasting transactions, updates to other systems, or internal processing tasks.
  4. Logging and Monitoring: Implement logging to track database changes and actions taken, facilitating auditing and troubleshooting.

Design Considerations

Technical Considerations

xrchz commented 7 months ago

As of 27dab19 I think a lot of this is done.

LookingForOwls commented 7 months ago

Ok marking complete and will break out any smaller tasks that come up into their own issue.