Skip to content

fullstackanalytics/pubsub4s

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pubsub4s

Reactive client wrapper for Google PubSub java library.

For use with Akka via custom Source and removal of nulls which are not supported in Akka.

Usage

import com.google.api.services.pubsub
import akka.stream._
import akka.stream.scaladsl._

implicit val system = ActorSystem("reactive-pubsub")
implicit val materializer = ActorMaterializer()

val pullRequest = PullRequest(10, false)
ReactivePubsub("testing", "http://localhost:8430") // Emulator at locahost.
  .subscribeConcat("projects/myproject/subscriptions/mysubscription", pullRequest)
  .map(msg => data.toString)
  .runWith(Sink.foreach(println))

Testing

Use emulator on locahost.

About

Reactive client wrapper for Google Pub/Sub Java client.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published