Skip to content

Instantly share code, notes, and snippets.

@abdolence
Last active February 11, 2020 23:14
Show Gist options
  • Save abdolence/9100c98e31c6060e2f1c8ffe1e419719 to your computer and use it in GitHub Desktop.
Save abdolence/9100c98e31c6060e2f1c8ffe1e419719 to your computer and use it in GitHub Desktop.
package fizzbuzz
import akka.http.scaladsl.marshallers.sprayjson.SprayJsonSupport._
import cloudflow.akkastream._
import cloudflow.akkastream.util.scaladsl._
import cloudflow.streamlets._
import cloudflow.streamlets.avro._
import JsonFormats._
class FizzBuzzNumberHttpIngress extends AkkaServerStreamlet {
val out =
AvroOutlet[FizzBuzzNumber]( "out" ).withPartitioner( RoundRobinPartitioner )
def shape = StreamletShape.withOutlets( out )
override def createLogic = HttpServerLogic.default( this, out )
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment