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

[Feature Request] Multiple DB support #34

Open
TylorS opened this issue Jul 9, 2020 · 5 comments
Open

[Feature Request] Multiple DB support #34

TylorS opened this issue Jul 9, 2020 · 5 comments
Assignees
Labels
enhancement New feature or request
Projects
Milestone

Comments

@TylorS
Copy link

TylorS commented Jul 9, 2020

I have been reading through the reddit post and a common thread I see is not taking to the use of mongodb. I'm not currently aware of the featureset of mongo currently in use, but I'd suspect the usage isn't too far away from the operations of other databases.

I feel creating an abstraction around Odin's database operations, in order to provide the ability to plug in implementations of that abstraction for different databases would be a net win and would cast a larger net on the community.

@TylorS TylorS added the enhancement New feature or request label Jul 9, 2020
@theycallmemac
Copy link
Owner

I agree on this, I think abstraction around DB operations is the right way to go. It offer a larger potential for community customization. You're definitely right in saying that the usage isn't too far away from the operations of other databases, this will be a significant rewrite of some hardcoded MongoDB specific logic, but this is something which can also be abstracted over.

Adding this to the v2.0.0 milestone.

@theycallmemac theycallmemac added this to the v2.0.0 milestone Jul 9, 2020
@theycallmemac theycallmemac added this to To do in Odin v2.0.0 via automation Jul 9, 2020
@theycallmemac
Copy link
Owner

Based on some chatter in the Discord today we have defined the following:

  • When MongoDB goes down currently, Odin itself preserves the queue at the time of failure. Jobs cannot be added or removed from the queue at this time but execution still takes place. This, however, is not done in memory. If Odin itself was to fail and then restart, the queue would be lost until the database was running again.

In turn we have come up with the following plan of action for this issue:

  • The user can plug in their database of choice. If said database fails, Odin resorts to Plan B - an in memory store of the job queue. This way, if Odin were also to fail and restart, the queue would be preserved in memory. When the database is back online, the database is synced with the in memory queue

hiepd pushed a commit to hiepd/odin that referenced this issue Jul 18, 2020
hiepd pushed a commit to hiepd/odin that referenced this issue Jul 18, 2020
hiepd pushed a commit to hiepd/odin that referenced this issue Jul 25, 2020
hiepd pushed a commit to hiepd/odin that referenced this issue Jul 26, 2020
hiepd pushed a commit to hiepd/odin that referenced this issue Jul 26, 2020
@theycallmemac
Copy link
Owner

@hiepd has begun work on this - issue is being built on this branch.

@tmkontra
Copy link
Contributor

tmkontra commented Aug 1, 2020

Glad to see this on the roadmap.

@theycallmemac is the v2.0.0 requirement simply to provide the interface + mongoDB implementation, or should there be some more built-in implementations (the usual supects i.e. psql, redis, dynamodb)?

@theycallmemac
Copy link
Owner

@ttymck with v2.0.0 we are looking to provide abstraction which will allow for a wider range of data stores to be used with Odin, both nosql and sql based :)

hiepd pushed a commit to hiepd/odin that referenced this issue Aug 6, 2020
hiepd pushed a commit to hiepd/odin that referenced this issue Aug 11, 2020
hiepd pushed a commit to hiepd/odin that referenced this issue Aug 13, 2020
@hiepd hiepd moved this from To do to In progress in Odin v2.0.0 Aug 13, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Odin v2.0.0
  
In progress
Development

No branches or pull requests

4 participants