GithubHelp home page GithubHelp logo

akka / alpakka-samples Goto Github PK

View Code? Open in Web Editor NEW
66.0 16.0 37.0 1.21 MB

Example projects building Reactive Integrations using Alpakka

Home Page: https://akka.io/alpakka-samples/

Scala 36.06% Java 63.94%
akka akka-streams alpakka reactive-streams

alpakka-samples's Introduction

alpakka-samples's People

Contributors

2m avatar aludwiko avatar eloots avatar ennru avatar franciscolopezsancho avatar ignasi35 avatar johanandren avatar jrudolph avatar max8github avatar patriknw avatar sebastian-alfers avatar seglo avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

alpakka-samples's Issues

bug: akka-sample-persistence-dc-java not working

README.md in akka-sample-persistence-dc-java is wrong
and even trying to point to the real class also fails

 mvn exec:java -Dexec.mainClass="sample.persistence.res.MainApp" -Dexec.args="cassandra"

with

java.lang.ClassNotFoundException: sample.persistence.res.MainApp
    at org.codehaus.mojo.exec.URLClassLoaderBuilder$ExecJavaClassLoader.loadClass (URLClassLoaderBuilder.java:198)
    at java.lang.ClassLoader.loadClass (ClassLoader.java:521)
    at org.codehaus.mojo.exec.ExecJavaMojo$1.run (ExecJavaMojo.java:271)
    at java.lang.Thread.run (Thread.java:834)

Also the name of the project in the pom.xml is different from the name of the folder. Which one is correct?

SQS read - Upstream failed. java.util.concurrent.CompletionException

When am trying to run your code, I get this run time exception being thrown. I have my AWS SQS queue configured and the URLs replaced in the source code. Not sure if I am missing anything else?

SEVERE: [sending to publish queue] Upstream failed. java.util.concurrent.CompletionException: akka.pattern.AskTimeoutException: Ask timed out on [Actor[akka://default/user/$a#923390501]] after [2000 ms]. Message of type [java.lang.String]. A typical reason for AskTimeoutException is that the recipient actor didn't send a reply. at java.util.concurrent.CompletableFuture.encodeThrowable(CompletableFuture.java:292) at java.util.concurrent.CompletableFuture.completeThrowable(CompletableFuture.java:308) at java.util.concurrent.CompletableFuture.uniApply(CompletableFuture.java:593) at java.util.concurrent.CompletableFuture$UniApply.tryFire(CompletableFuture.java:577) at java.util.concurrent.CompletableFuture.postComplete(CompletableFuture.java:474) at java.util.concurrent.CompletableFuture.completeExceptionally(CompletableFuture.java:1977) at scala.concurrent.java8.FuturesConvertersImpl$CF.apply(FutureConvertersImpl.scala:21) at scala.concurrent.java8.FuturesConvertersImpl$CF.apply(FutureConvertersImpl.scala:18) at scala.concurrent.impl.CallbackRunnable.run(Promise.scala:60) at scala.concurrent.BatchingExecutor$Batch.processBatch$1(BatchingExecutor.scala:63) at scala.concurrent.BatchingExecutor$Batch.$anonfun$run$1(BatchingExecutor.scala:78) at scala.runtime.java8.JFunction0$mcV$sp.apply(JFunction0$mcV$sp.java:12) at scala.concurrent.BlockContext$.withBlockContext(BlockContext.scala:81) at scala.concurrent.BatchingExecutor$Batch.run(BatchingExecutor.scala:55) at scala.concurrent.Future$InternalCallbackExecutor$.unbatchedExecute(Future.scala:870) at scala.concurrent.BatchingExecutor.execute(BatchingExecutor.scala:106) at scala.concurrent.BatchingExecutor.execute$(BatchingExecutor.scala:103) at scala.concurrent.Future$InternalCallbackExecutor$.execute(Future.scala:868) at scala.concurrent.impl.CallbackRunnable.executeWithValue(Promise.scala:68) at scala.concurrent.impl.Promise$DefaultPromise.$anonfun$tryComplete$1(Promise.scala:284) at scala.concurrent.impl.Promise$DefaultPromise.$anonfun$tryComplete$1$adapted(Promise.scala:284) at scala.concurrent.impl.Promise$DefaultPromise.tryComplete(Promise.scala:284) at akka.pattern.PromiseActorRef$.$anonfun$apply$1(AskSupport.scala:650) at akka.actor.Scheduler$$anon$4.run(Scheduler.scala:205) at scala.concurrent.Future$InternalCallbackExecutor$.unbatchedExecute(Future.scala:870) at scala.concurrent.BatchingExecutor.execute(BatchingExecutor.scala:109) at scala.concurrent.BatchingExecutor.execute$(BatchingExecutor.scala:103) at scala.concurrent.Future$InternalCallbackExecutor$.execute(Future.scala:868) at akka.actor.LightArrayRevolverScheduler$TaskHolder.executeTask(LightArrayRevolverScheduler.scala:328) at akka.actor.LightArrayRevolverScheduler$$anon$3.executeBucket$1(LightArrayRevolverScheduler.scala:279) at akka.actor.LightArrayRevolverScheduler$$anon$3.nextTick(LightArrayRevolverScheduler.scala:283) at akka.actor.LightArrayRevolverScheduler$$anon$3.run(LightArrayRevolverScheduler.scala:235) at java.lang.Thread.run(Thread.java:748) Caused by: akka.pattern.AskTimeoutException: Ask timed out on [Actor[akka://default/user/$a#923390501]] after [2000 ms]. Message of type [java.lang.String]. A typical reason for AskTimeoutException is that the recipient actor didn't send a reply.

New example: publish events from some queue to connected websocket clients

Something of that kind seems to come up quite often. One of the questions here is whether you would create a consumer for the queue (e.g. kafka, or some pubsub) per client or if you would try to cache the consumer in the server and put it behind a BroadcastHub so you can more efficiently handle multiple WS clients.

Akka Kafka Sample Problem

Hi,

When I am trying to run the Kafka Akka sample I am having a problem in this line of code, in line 103 of Main.java;
.run(actorSystem);

Here my IDE is saying that it's expecting a Materializer, not an ActorSystem
image

Here are the library versions i am using;
image

Maybe I have got something wrong?

Thanks

Adapt to new SQS API

Short description

Alpakka SQS changed the API in 1.0.1, the example should show that API.

Remove studentify from sample projects

Short description

The examples currently use the studentify training aid to instruct users how to interatively develop any given example. This is good for training purposes, but it can make quick references from documentation difficult, especially since the studentify implementation is not explained to the user. I recommend reverting these examples to the standard SBT scala project directory structure and remove the studentify SBT code. We can tag the repo before this change if we want to explore providing Alpakka training examples some time in the future.

Create a site and deploy to ghPages

The alpakka-sample-http-csv-to-kafka example is capable of creating a site showing step-by-step changes to the example. This could be auto-deployed to ghPages.

Fix csv source for the alpakka-sample-http-csv-to-kafka

The nasdaq changed the way they share data with the outside world.
Just to see it working I've used another open source csv

val uriCsv = "https://www.stats.govt.nz/assets/Uploads/Annual-enterprise-survey/Annual-enterprise-survey-2019-financial-year-provisional/Download-data/annual-enterprise-survey-2019-financial-year-provisional-csv.csv"

It's probably not the best link to use but currently the project just doesn't work because of a missing source.

bug: akka-sample-distributed-workers-scala doesn't work with JRE17

Exception (java.lang.AssertionError) encountered during startup: java.lang.reflect.InaccessibleObjectException: Unable to make field private int java.io.FileDescriptor.fd accessible: module java.base does not "opens java.io" to unnamed module @41a962cf

We need to add instructions to `--add-open' in the README.md

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.