spring-projects / spring-projects/spring-session
Add support for writing delta of changes to MongoDB session repositories
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 1.9k
- Forks
- 1.2k
- Avg merge
- 4h 27m
- Merged PRs (30d)
- 55
Description
Since MongoDB support has been migrated back to this repository, I'm cloning the issue originally reported in spring-projects/spring-session-data-mongodb#106.
Original issue description:
Generally, session repository implementations should track changes to session and write only delta in order to reduce the probability of lost updates due to race conditions.
Additionally, if this is implemented also consider supporting
SaveModeto allow flexibility.All session repositories in Spring Session core modules support this and could be used for inspiration.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reading spring-session-core/src/main/java/org/springframework/session/SaveMode.java and the existing session repository implementations in the Spring Session core modules. Then locate the MongoDB session repository and its tests. Done means MongoDB repositories write only changed session data and support the SaveMode options described in the issue.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java, mongodb, spring
- Domain
- backend, databases
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100