Couchbase Restful Job Pattern
This repository provides an example of a C# pattern for handling long running jobs in a REST microservice or other cloud environment, using Couchbase as the backing data store. However, this pattern could be used for any distributed data storage mechanism capable of atomic writes for lock management.
More information about this example is available on my blog: https://btburnett.com/couchbase/microservices/rest/2018/12/06/a-restuful-job-pattern-for-a-csharp-microservice.html
- Visual Studio (sorry, no VSCode at the moment)
- Docker for Windows
- Docker must be configured for Linux containers (the default)
- The drive where this project lives must be shared within Docker
Running the Sample
Just set the startup project in Visual Studio to be the "docker-compose" project and hit F5. A copy of Couchbase is built into the docker-compose project and will be started and configured within a Linux container.
Note: The first time you run the project it may take a while as it downloads all the required Docker images and configures Couchbase.