Use Database Transaction Logs to Implement Observer Patternby@amritsingh
779 reads

Use Database Transaction Logs to Implement Observer Pattern

tldt arrow
Read on Terminal Reader🖨️

Too Long; Didn't Read

Design patterns help you solve common problems and keep your code maintainable, and extensible. The observer pattern is used when a change in an object should trigger changes in the observing objects. Using Transaction Logs to implement Observer Pattern is the most common way to implement this pattern in web apps. There are many ways this pattern can be implemented, such as using Web Framework’s Observers and using periodic jobs to trigger the observer code based on the type of events. Using a simple background job to scan through the database tables and based on changes the observers code is run synchronously or asynchronously.

Companies Mentioned

Mention Thumbnail
Mention Thumbnail
featured image - Use Database Transaction Logs to Implement Observer Pattern
Amrit Singh HackerNoon profile picture

@amritsingh

Amrit Singh

About @amritsingh
LEARN MORE ABOUT @AMRITSINGH'S EXPERTISE AND PLACE ON THE INTERNET.
react to story with heart

RELATED STORIES

L O A D I N G
. . . comments & more!
Hackernoon hq - po box 2206, edwards, colorado 81632, usa