Giter Club home page Giter Club logo

myslickapp's Introduction

mySlickApp

This application is a sandbox for learning play:

It currently utilizes the following: mysql, oracle, slick and typesafe management console.

Setup

Database: Mysql or Oracle

In "application.conf" as well as specifying the database properties..you will need designate which database to use by setting the property below: mySlickApp.database = "oracle"

Optimistic Lock using Play, Slick and Akka

Actors: OptimisticLockSupervisor, UpdateCoffeesAndRelationsActor

Contollers: ActorController

The following example demonstrates how actors can be used to implement an optimistic lock strategy.

The design consists of a supervisor actor called OptimisticLockSupervisor. This actor is responsible for creating a child actor called UpdateCoffeesAndRelationsActor. Within this actor slick is used to get the latest version from the Coffees table and then increment the value and then store this new value in a table called CoffeeVersions as well as updating the Coffees table. The version column in the tables CoffeeVersions and Coffees table have to be unique.

The number of instances of the UpdateCoffeesAndRelationsActor will be set to a value of 6. This will increase the probability of one of the database operations failing. If this occurs then within the supervisor the UpdateCofeesAndRelationsActor will be restarted.

After starting play..type the http://localhost:9000/actorIntegration

GStreamer -- Installation

GST_PLUGIN -- make sure this is not set.. This needs to be set for gst-inspect to work OSSBUILD_GST -- make sure this is not set..

myslickapp's People

Contributors

alexbillerey avatar kodjobaah avatar

Watchers

Oliver Wickham avatar James Cloos avatar  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.