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
// AeronProcessor as a server | |
AeronProcessor server = AeronProcessor.builder() | |
.senderChannel("udp://localhost:12000") | |
.receiverChannel("udp://localhost:12001") | |
.senderOnly(true) | |
.create(); | |
// Read file bytes on server command | |
IO.readFile("~/test.txt") | |
.subscribe(server); |
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
// Create an async message-passing Processor exposing a Flux API | |
TopicProcessor<String> sink = TopicProcessor.create(); | |
// Scatter Gather the input sequence | |
sink | |
.map(String::toUpperCase) | |
.flatMap(s -> | |
Mono.fromCallable(() -> someRepository.findOneByCategory(s)) | |
.timeout(Duration.ofSeconds(3), someRepository::fallback) | |
.subscribeOn(Schedulers.parallel()) |
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
includeTargets << grailsScript("_GrailsInit") | |
includeTargets << grailsScript("_GrailsTest") | |
includeTargets << grailsScript("_GrailsWar") | |
target(main: "Clean, Test, and War") { | |
clean() | |
allTests() // results in (1) | |
//packageApp() not needed | |
warCreator.configureWarName() | |
war() |