Skip to content

Creating custom JDBC wrapper for serialization/deserialization #505

Discussion options

You must be logged in to vote

Hello @pranjalc92

Is it fine to use LocalBucket.fromJsonCompatibleSnapshot to deserialize the data from the DB?

I suppose that it will be unpleasure excersize. The main problem will be correctness in concurrent environment.

Are we losing any features from Bucket4J while doing so?

At least on-the-fly configuration replacement and implicit configuration replacement. And you will not be able to reuse AbstractDistributedBucketTest to check whether you solution is correct or not. So I highly reccomend to extend one of base classes(choose particular depending from concurrency features that your database provides) instead of writing all code from scratch:

  • AbstractCompareAndSwapBasedProxyMan…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by pranjalc92
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants