someone
someone

Reputation: 6572

Monitoring application approach

I would be grateful if you could advice on my approach. whether I'm doing right thing or is there any alternative good approach/technologies for this purpose.

Upvotes: 0

Views: 85

Answers (1)

eggyal
eggyal

Reputation: 125855

Rather than wasting CPU in the busy wait loop, you probably ought to define a trigger that notifies your process of newly inserted data.

Alternatively, you could use a messaging layer to which updates get submitted and different handlers (e.g. one to store the update in the database, another to push the update to web users) register themselves to receive and process the message.

Other than that, your design sounds reasonable to me.

Upvotes: 1

Related Questions