GithubHelp home page GithubHelp logo

contention's Introduction

Contention

This is a quick application to trigger contention on an entity in Google Datastore via Google App Engine. It leverages a task queue framework to insert tasks that update properties on the same entity.

This is purposely an anti-pattern to expose contention. YOU SHOULD ABSOLUTELY NOT DESIGN YOUR CODE TO WORK THIS WAY. This example is purely to help users understand how transaction contention occurs as well as how Google handles the contention.

Getting Started

We recommend that you create a virtual environment for your project as we do install dependencies that will isolate them from other projects.

Once you have your environment setup run make install to install our dependencies. The production based dependencies will be installed to a vendor directory in the project root so they can be deployed with the project.

Running Locally

Run make run to run the project locally. You can then run the process by visiting http://localhost:8080

Deployment

Follow the standard Google App Engine directions for creating a Google Cloud Project and the setup process for a Google App Engine project. This should include installing the local cloud sdk and gcloud command line tool.

If those are configured you can then run: gcloud app deploy to deploy the code into your GCP project.

contention's People

Contributors

lyddonb avatar

Watchers

 avatar James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.