Last active
February 11, 2020 23:14
-
-
Save abdolence/9100c98e31c6060e2f1c8ffe1e419719 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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