Giter VIP home page Giter VIP logo

camel-scala's Introduction

camel-scala

Demo for Slovak Scala User Group showing:

  • camel routes written in scala
  • integration of camel and akka

What you need to run it

  • PostgreSQL installation (see scala-camel-router/src/main/scala/camel/slick.scala)
  • ActiveMQ
    • download
    • start
    • manually create queues: updateToPlay, updateFromPlay

What it does and how

camel-scala-router is a standalone router that waits for incoming files in data/incoming. Once a file is dropped into data/incoming (e.g. data.txt) AND data.txt.ready files exists in the same location router processes the incoming file.

The expected format of the file is:

  • 3 lines
  • 1st line: match id (see slick.scala)
  • 2nd line: time in format hh:mm:dd
  • 3rd line: score

Once the file is processed it is saved into the DB, then a message is sent via JMS (ActiveMQ) to play application's actor that use play camel plugin

camel-scala-play is a play application that:

  • can receive messages from scala router via JMS.
  • it displays hockey match scores
  • it can update the score of a match
  • when score update is received scores are updates using WebScokets so users can see changes live

camel-scala's People

Contributors

bs76 avatar

Watchers

 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.