Skip to content
This repository was archived by the owner on Jun 23, 2022. It is now read-only.
/ pubsub4s Public archive
forked from fullstackanalytics/pubsub4s

Reactive client wrapper for Google Pub/Sub Java client.

License

Notifications You must be signed in to change notification settings

emartech/pubsub4s

 
 

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.

Topics

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Scala 71.7%
  • Java 28.3%