# Concurrency ## 📕Articles - [Optimistic Concurrency](https://docs.microsoft.com/en-us/dotnet/framework/data/adonet/optimistic-concurrency) - [Optimistic concurrency for pessimistic times](https://event-driven.io/en/optimistic_concurrency_for_pessimistic_times/) - [How to use ETag header for optimistic concurrency](https://event-driven.io/en/how_to_use_etag_header_for_optimistic_concurrency/) - [Concurrency Management in Entity Framework Core](https://www.learnentityframeworkcore.com/concurrency) - [Basics Concurrency Controls and Conflicts with .NET EF Core](https://thecodeblogger.com/2021/07/03/basics-concurrency-controls-and-conflicts-with-net-ef-core/) - [Implement optimistic concurrency with .NET EF Core](https://thecodeblogger.com/2021/07/04/implement-optimistic-concurrency-with-net-ef-core/) - [Transactions and optimistic concurrency control](https://docs.microsoft.com/en-us/azure/cosmos-db/sql/database-transactions-optimistic-concurrency) - [Optimistic Locking with Version Number](https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/DynamoDBMapper.OptimisticLocking.html) - [Handling concurrency – Aggregate Pattern and EF Core](http://www.kamilgrzybek.com/design/handling-concurrency-aggregate-pattern-and-ef-core/) - [Handling Concurrency Conflicts](https://docs.microsoft.com/en-us/ef/core/saving/concurrency) - [How to handle concurrency in Entity Framework Core](https://www.mssqltips.com/sqlservertip/6115/how-to-handle-concurrency-in-entity-framework-core/) - [Handling data concurrency in EF Core and ASP.NET Core WebAPI](https://dejanstojanovic.net/aspnet/2018/november/handling-data-concurrency-in-ef-core-and-aspnet-core-webapi/) - [Concurrency Tokens](https://docs.microsoft.com/en-us/ef/core/modeling/concurrency) - [Handling Concurrency Conflicts](https://docs.microsoft.com/en-us/ef/core/saving/concurrency) - [Handling Concurrency in EF-Core](https://www.learnentityframeworkcore5.com/handling-concurrency-in-ef-core) - [Optimistic Concurrency Management in EntityFramework Core](https://codeburst.io/optimistic-concurrency-management-in-entityframework-core-79a4921067cb) - [Solving Concurrency in Event-Driven Microservices](https://medium.com/@hugo.oliveira.rocha/solving-concurrency-in-event-driven-microservices-79bbc13b597c) - [Optimistic concurrency in Event Store](https://developers.eventstore.com/clients/dotnet/5.0/appending.html#optimistic-concurrency) - [Solving Concurrency in Event-Driven Microservices](https://itnext.io/solving-concurrency-in-event-driven-microservices-79bbc13b597c) - [Five RESTFul Web Design Patterns Implemented in ASP.NET Core 2.0 Part 4: Optimistic Concurrency](https://blog.jeremylikness.com/blog/2017-12-15_five-restful-web-design-patterns-implemented-in-asp.net-core-2.0-part-4-optimistic-concurrency/) - [Implementing optimistic concurrency with EF Core](https://dzimchuk.net/implementing-optimistic-concurrency-with-ef-core/) - [Optimistic concurrency control in ASP.NET WebAPI](https://tudorturcu.wordpress.com/2012/04/30/optimistic-concurrency-control-asp-net-webapi-en/) - [Optimistic concurrency support in HTTP and WebAPI – part 2](https://tudorturcu.wordpress.com/2012/05/17/optimistic-concurrency-support-in-http-and-webapi-part-2/) - [Comparing Optimistic and Pessimistic Locking With GO and PostgreSQL](https://hackernoon.com/comparing-optimistic-and-pessimistic-locking-with-go-and-postgresql) - [Dealing With Optimistic Concurrency Control Collisions](https://jimmybogard.com/dealing-with-optimistic-concurrency-control-collisions/) - [Distributed Locks with Redis](https://redis.io/docs/manual/patterns/distributed-locks/) - [Optimistic Concurrency in an HTTP API with ETags & Hypermedia](https://codeopinion.com/optimistic-concurrency-in-an-http-api-with-etags-hypermedia/) - [HTTP and ETag Header Fields](https://blog.peterritchie.com/posts/http-and-etag-header-fields) ⭐ - [ETags in ASP.NET Core](https://blog.peterritchie.com/posts/etags-in-aspdotnet-core) ⭐ - [Be optimistic about concurrency in Entity Framework](https://www.dateo-software.de/blog/concurrency-entity-framework) # Videos - [Optimistic Concurrency in an HTTP API with ETags & Hypermedia](https://www.youtube.com/watch?v=2Nk3kCCyu3A) ## 📦 Libraries - [kidfashion/redlock-cs](https://github.com/kidfashion/redlock-cs) - Distributed lock with Redis and C# (based on http://redis.io/topics/distlock) - [samcook/RedLock.net](https://github.com/samcook/RedLock.net) - An implementation of the Redlock algorithm in C# - [madelson/DistributedLock](https://github.com/madelson/DistributedLock) - A .NET library for distributed synchronization # Samples - [dotnet/EntityFramework.Docs/Concurrency/BasicSample](https://github.com/dotnet/EntityFramework.Docs/blob/main/samples/core/Saving/Concurrency/BasicSample.cs) - [dotnet/EntityFramework.Docs/Concurrency/ConflictResolutionSample](https://github.com/dotnet/EntityFramework.Docs/blob/main/samples/core/Saving/Concurrency/ConflictResolutionSample.cs)