
Security News
Axios Maintainer Confirms Social Engineering Attack Behind npm Compromise
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.
sbt installed.cqlshA maiden voyage into the Scala, Akka and Cassandra world. The Akka client attaches to the Vertx Event Bus Bridge using TCP. Daniel Stieger's project @ https://github.com/danielstieger/javaxbus is used to communicate with the event bus on the Vertx Server. On the Akka side this code was converted to Scala and used to fomulate the message. The development/testing environment uses either a Cassandra container or an installed networked Cassandra. View and change the configuration in application.conf. The asynchronous/reactive code is much like Vertx using Futures and Promises. Conclusion, Akka is a good place to start if you want to learn Scala and the Actor/Behavior pattern. The need for a Dodex database is simple so Cassandra usage barely scratches the surface.
Note; dodex-Akka can be run/developed on most platforms since cqlsh is now supported with python 3.
Download methods:
npm install dodex-akkagh repo clone DaveO-Home/dodex-akkagit clone from https://github.com/DaveO-Home/dodex-akkaInstall Cassandra or use the provided script cassDocker.sh to create a Docker container. When using the Docker container, additional Cassandra configuration is not necessary to get started. The Cassandra container runs @ 127.0.0.1:9042.
Edit src/main/resources/application.conf and change the following;
cassandra-service host values to reflect a networked Cassandraevent.bus.dev.host to reflect the location of the development Vertx micro-serviceevent.bus.host to reflect the location of the production Vertx micro-serviceport values if test and production are running on the same machine simultaneously. Make sure the bridge.port value in application-conf.json for the Vertx micro-service corresponds to these values.cd <install directory>/dodex-akka and execute sbt to enter the sbt shell and execte run. This should install Scala dependencies and startup the micro-service in development mode against the installed Cassandra database. Review instructions below on Akka development.
On the Vertx side, make sure dodex-vertx is running with Cassandra database set.
export DEFAULT_DB=cassandra or Set DEFAULT_DB=cassandra before starting the Dodex-Vertx micro-service.defaultdb to cassandra in database_config.json file before starting vertx.With both Vertx and Akka sevices running, execute url http://localhost:8087/test in a browser. To test that the Akka service is working, follow instructions for Dodex-Mess. If the message box displays connected you are good to go.
Note: The Vertx service is started with Cassandra if the startup message TCP Event Bus Bridge Started is displayed.
You can also run http://localhost:8087/test/bootstrap.html for a bootstrap example.
Follow instructions for dodex at dodex-mess and dodex-input.
sbt, set run / fork := true, ~run mqtt=trueexport USE_MQTT=true, sbt, set run / fork := true, ~runsbt, set run / fork := true, ~run
Note: To start the Vert.x Mqtt Broker, see dodex-vertx README
Starting in Dev Mode to test implementation; execute sbt and then run. The dodex-vertx service should be running first, however if dodex-akka is started first, the Akka service will continue attempting the TCP handshake for a limited number of tries. This can be configured in Limits.scala. Conversely, if dodex-vertx is shutdown, the Akka client will continue with attempts to reconnect a limited number of times, frequency can also be configured.
Starting in Dev Mode to develop; execute sbt to start the sbt shell
Note: These commands should work when changing Akka code.
set run / fork := true, this allows the application to reload when shutting down with ctrl-cset run / javaOptions += "-Ddev=true" for forked JVM and then execute ~run to startAkka code and execute ctrl-c, while still in the sbt shell and using ~run the Akka service will restart.Vert.x service, the Akka service should auto restart.Building a Production distribution - Review the sbt plugin documentation for details
Try sbt stage this will build a production setup without packaging. You can execute by running target/universal/stage/bin/akka-dodex-scala. Make sure your production database is running.
Execute sbt "Universal / packageBin" to package the application. It can then be moved to a proper machine/directory for extraction and execution. The generated package is target/universal/akka-dodex-scala-2.0.zip.
Building a fat jar using the assembly plugin requires a hack for an Akka application. Basically the plugin cannot determine the full Akka configuration.
Fat Jarsrc directory. The simplist method is to cd src and execute git clone https://github.com/DaveO-Home/jin.git.GenFatJar is located, execute export WD=., export CD=${PWD}/target/classes and mkdir target/classes../GenFatJar to build the Fat Jar.target/scala-3.4.2/akka-dodex-scala-assembly-2.0.jar.scala target/scala-3.4.2/akka-dodex-scala-assembly-2.0.jar to startup production../runUber.cqlsh is installed, to access the local database, this might be useful - cqlsh 127.0.0.1 --cqlversion=3.4.6 --encoding=utf8.Cassandra 4 setup this might be useful - cqlsh <production host> 9042 --cqlversion="3.4.6".cqlsh, use dodex; and describe tables;.localhost:3087/test/index.html in a browser.npm install.cassandra, co-ordination among Akka, Vertx and React builds is difficult to automate. Therefore using npx gulp test and npx gulp prod will not work. For a test build use npx gulp rebuild and once Vertx and Akka are restarted, tests can be executed with npx gulp acceptance. For the React production build, use npx gulp prd.Scala, Sbt, Akka and Cassandra documentation.
https://github.com/DaveO-Home/dodex-akka/blob/master/CHANGELOG.md
This project is licensed under the MIT License - see the LICENSE file for details
FAQs
A scala asynchronous server for Dodex and Dodex-mess
The npm package dodex-akka receives a total of 1 weekly downloads. As such, dodex-akka popularity was classified as not popular.
We found that dodex-akka demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.

Security News
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.