Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sap1ens/akka-microservice
Example of a microservice with Scala, Akka, Spray and Camel/ActiveMQ
https://github.com/sap1ens/akka-microservice
activemq akka camel microservice scala
Last synced: 27 days ago
JSON representation
Example of a microservice with Scala, Akka, Spray and Camel/ActiveMQ
- Host: GitHub
- URL: https://github.com/sap1ens/akka-microservice
- Owner: sap1ens
- License: mit
- Created: 2014-06-30T03:30:00.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2016-11-11T18:45:12.000Z (about 8 years ago)
- Last Synced: 2024-08-03T09:04:35.072Z (4 months ago)
- Topics: activemq, akka, camel, microservice, scala
- Language: Scala
- Homepage:
- Size: 16.6 KB
- Stars: 43
- Watchers: 6
- Forks: 17
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-list-microservice - akka-microservice
README
# Microservice example
Example of a microservice with Scala, Akka, Spray and Camel/ActiveMQ. Based on one of the Typesafe Activator templates.
Project contains:
- Easy to test Akka system with a sample actor
- Spray-based RESTful API with full CORS support
- Actor and API sample tests
- Camel/ActiveMQ extension for a handy integration with Akka system
- Typesafe config with different profiles for production and testing environments
- Logback-SLF4J logging
- Sbt assembly plugin for JAR-file creation with custom merge strategy# API structure
```
POST /api/example1/test (Example1Routes)
GET /api/example1/done (Example1Routes)
GET /api/example1/service/{serviceID}/{command} (Example1Routes)
GET /api/example2 (Example2Routes)
```# Build & Run
To run simply use:
```
sbt run
```Run tests with:
```
sbt test
```To build & run:
```
sbt assembly
```And then run JAR as usual, something like this:
```
nohup java -jar target/scala-2.11/akka-microservice-assembly-1.0.jar 1>/dev/null 2>&1 &
```