Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement event loop for command handling in SugarDB. #164

Open
kelvinmwinuka opened this issue Jan 13, 2025 · 0 comments
Open

Implement event loop for command handling in SugarDB. #164

kelvinmwinuka opened this issue Jan 13, 2025 · 0 comments
Assignees
Labels
advanced An advanced enhancement requiring deep knowledge of the codebase and/or a particular topic enhancement New feature or request

Comments

@kelvinmwinuka
Copy link
Collaborator

To simplify the implementation of the SugarDB engine, let's experiment with an event loop that handles requests and other events such as snapshots, expiring keys, etc.

The event loop will run in a single goroutine and will handle internal and TCP request events. The embedded API will bypass the event loop. Store access will be synchronized between embedded API calls and TCP events using a mutex.

@kelvinmwinuka kelvinmwinuka added enhancement New feature or request advanced An advanced enhancement requiring deep knowledge of the codebase and/or a particular topic labels Jan 13, 2025
@kelvinmwinuka kelvinmwinuka self-assigned this Jan 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
advanced An advanced enhancement requiring deep knowledge of the codebase and/or a particular topic enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant