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

[PAGOPA-2382] fix: Update ConsistencyLevel #26

Merged
merged 1 commit into from
Nov 15, 2024
Merged

[PAGOPA-2382] fix: Update ConsistencyLevel #26

merged 1 commit into from
Nov 15, 2024

Conversation

cap-ang
Copy link
Contributor

@cap-ang cap-ang commented Nov 15, 2024

List of Changes

  • Improve exception logging
  • Replace Eventual consistency with Session consistency

In Session Consistency, the client’s usage of a session token guarantees that data corresponding to an older session will never be read. However, if the client is using an older session token and more recent updates have been made to the database, the more recent version of the data will be returned despite an older session token being used.

https://learn.microsoft.com/en-us/azure/cosmos-db/consistency-levels

Motivation and Context

Eventual consistency is the weakest form of consistency because a client may read the values that are older than the ones it read in the past. Eventual consistency is ideal where the application doesn't require any ordering guarantees.

https://learn.microsoft.com/en-us/azure/cosmos-db/consistency-levels

How Has This Been Tested?

Screenshots (if appropriate):

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)

Checklist:

  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.

@cap-ang cap-ang added the bug Something isn't working label Nov 15, 2024
@cap-ang cap-ang self-assigned this Nov 15, 2024
@cap-ang cap-ang requested a review from a team as a code owner November 15, 2024 10:02
@cap-ang cap-ang merged commit 958f134 into main Nov 15, 2024
12 of 13 checks passed
@cap-ang cap-ang deleted the PAGOPA-2382 branch November 15, 2024 12:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working size/small
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants