GithubHelp home page GithubHelp logo

rajeshmoyra / explore-akka Goto Github PK

View Code? Open in Web Editor NEW

This project forked from felipegutierrez/explore-akka

0.0 0.0 0.0 9.51 MB

This project is a demo of an Akka-http and Akka-cluster running on top of Kubernetes (minikube) and with its own Docker image created by sbt-native-packager. It also includes several other examples of the Akka Classic and Typed (essential, persistence, remote, cluster, stream, HTTP, serialization (Srapy-JSON, Avro, Kryo, protobuffer)).

License: Apache License 2.0

Scala 87.15% Java 12.54% Shell 0.31%

explore-akka's Introduction

Build Status Coverage Status CodeFactor Codacy Badge GitHub issues GitHub closed issues Docker Image Size (latest by date) Lines of code

Exploring Akka 2.6.12 with Scala 2.12.7 and Java 8. The docker images are available at docker hub.

In action

Compile the project and verify the image created:

sbt docker:stage
sbt docker:publishLocal
docker images

Run the docker image: docker run -i felipeogutierrez/explore-akka:1.1 (don't forget the -i parameter to allow STDIN open!).

Running in k8s

minikube start --cpus 4 --memory 8192
kubectl create namespace akka

// This application is an Akka-http hello world
kubectl apply -f k8s/basics/hello-pod.yaml -n akka
kubectl port-forward hello 8001

This application is an Akka-cluster. 1 - Deploy the seed nodes:

kubectl apply -f k8s/cluster/akka-cluster-seed.yaml

Deploy the worker nodes:

kubectl apply -f k8s/cluster/akka-cluster-workers.yaml

Scale:

kubectl scale statefulset akka-seed --replicas=3

Check the logs:

kubectl get pods -A
kubectl logs -f akka-seed-0 | akka-seed-1 | akka-seed-2

Troubleshooting

sbt compile
sbt test
sbt package
sbt run
sbt clean assembly
sbt protobuf:protobufGenerate
sbt docker:stage
tree target/docker/stage
sbt docker:publishLocal
docker images
docker image rm <IMAGE_ID>

explore-akka's People

Contributors

codacy-badger avatar felipegutierrez 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.