Commit graph

267 commits

Author SHA1 Message Date
Patrik Nordwall
a548949143
Chunked messages in reliable delivery, #24276 (#28915)
* To avoid head of line blocking from serialization and transfer of large messages
  this can be enabled.
* ProducerController setting to chunk messages
* split up large messages in chunks in ProducerController
  and assemble again in ConsumerController
* serialization moved to these actors instead of in the Artery stream
* other messages (for other actors) can interleave with the chunks
* serializer for ChunkedMessage in SequencedMessage and MessageSent
* cleanup partially stored chunked messages
* reference docs
* mima filters
* additional test for sending the Request after half window size
* enforce that chunk-large-messages=off for sharding and work-pulling
2020-09-07 14:02:52 +02:00
Ignasi Marimon-Clos
68fa87c58c
Merge pull request #29356 from ignasi35/monitor-operator-sample-code 2020-07-13 19:33:36 +02:00
Ignasi Marimon-Clos
6c12ae117a PR comments 2020-07-13 10:46:16 +02:00
James Roper
558160702b
Added MergeSequence graph stage (#29247)
Fixes #28769

Use case for this is if you have a sequence of elements that has been
partitioned across multiple streams, and you want to merge them back
together in order. It will typically be used in combination with
`zipWithIndex` to define the index for the sequence, followed by a
`Partition`, followed by the processing of different substreams with
different flows (each flow emitting exactly one output for each input),
and then merging with this stage, using the index from `zipWithIndex`.

A more concrete use case is if you're consuming messages from a message
broker, and you have a flow that you wish to apply to some messages, but
not others, you can partition the message stream according to which
should be processed by the flow and which should bypass it, and then
bring the elements back together acknowledgement. If an ordinary merge
was used rather than this, the messages that bypass the processing flow
would likely overtake the messages going through the processing flow,
and the result would be out of order offset acknowledgement which would
lead to dropping messages on failure.

I've included a minimal version of the above example in the documentation.
2020-07-09 11:52:46 -04:00
Ignasi Marimon-Clos
f187abddd1 Prefer monitoring from a separate stream (without blocking calls) 2020-07-07 17:08:11 +02:00
Ignasi Marimon-Clos
2b71abe78e Show less code. More informative comments (still hides blocking calls 2020-07-07 15:27:25 +02:00
Ignasi Marimon-Clos
024710a6e0 Headers and formats 2020-07-07 14:58:56 +02:00
Ignasi Marimon-Clos
0e3b4605ad Simplify code: instanceof, hide sleeps,... 2020-07-07 14:25:27 +02:00
Ignasi Marimon-Clos
95a000a51b Adds sample code for the monitor operator 2020-07-07 13:09:54 +02:00
Enno
7d328c9984
Docs: re-add akka.patterns page (#29024)
* Docs: re-add akka.patterns page
* Add overloads with ClassicActorSystemProvider
* docs for Java `after`
2020-07-02 10:19:11 +02:00
Christopher Batey
7dfcc0bfd0
Validate leveldb write plugin is enabled for leveldb read plugin (#29288)
* Validate leveldb write plugin is enabled for leveldb read plugin

And remove some weird overriding

* mima
2020-06-24 08:01:03 +01:00
Johan Andrén
1e9e984727
Removing, deprecating and replacing usage of black/whitelist (#29254) 2020-06-18 15:48:28 +02:00
Enno
bc68f0d650
Docs: Actor source stream operators (#29178) 2020-06-15 14:11:28 +02:00
Ignasi Marimon-Clos
4faf806266
Merge pull request #29203 from ignasi35/example-for-throttle-op 2020-06-10 17:29:40 +02:00
Enno
7e69b990b9
Docs: Discovery via DNS (#29153) 2020-06-09 17:33:52 +02:00
Ignasi Marimon-Clos
411a11dd9d No commit without a formatting follwup 2020-06-09 15:55:43 +02:00
Ignasi Marimon-Clos
6eb1a9e1ef Split example to ease into the details. PR Comments 2020-06-09 15:53:04 +02:00
Ignasi Marimon-Clos
506cbc5bf4 x-ref to queue.md 2020-06-09 09:41:11 +02:00
Ignasi Marimon-Clos
a72ee4d5b8 Adds throttle example 2020-06-08 20:06:32 +02:00
Patrik Nordwall
228e1cfebc
Detect duplicate serializer identifiers, #29100
* Detect duplicate serializer identifiers, #29100
* and expand the documentation for the serializer identifier
* and mention BaseSerializer to read the identifier from config
* same class same id is ok
2020-05-26 13:09:53 +02:00
Patrik Nordwall
c45e6ef39b
Add Lightbend's SBR to Akka Cluster, #29085 (#29099)
* change package name to akka.cluster.sbr
* reference.conf has same config paths
* akka.cluster.sbr.SplitBrainResolverProvider instead of com.lightbend.akka.sbr.SplitBrainResolverProvider
* dependency from akka-cluster to akka-coordination, for lease strategy
* move TestLease to akka-coordination and use that in SBR tests
* remove keep-referee strategy
* use keep-majority by default
* review and adjust reference documentation

Co-authored-by: Johan Andrén <johan@markatta.com>
Co-authored-by: Johannes Rudolph <johannes.rudolph@gmail.com>
Co-authored-by: Christopher Batey <christopher.batey@gmail.com>
Co-authored-by: Arnout Engelen <github@bzzt.net>
2020-05-25 12:21:13 +02:00
Enno
8244f41d2e
Docs: revise Coordinated Shutdown with new actors APIs (#29057) 2020-05-18 19:19:11 +02:00
Johan Andrén
ac3065bfad
Docs for lazy stream operators (#28897) 2020-05-15 12:03:27 +02:00
Ignasi Marimon-Clos
64cc32edbd
Examples for extrapolate (#28797)
* Adds example for Extrapolate

* Adds example for Extrapolate (Java)

* Adds example for Expand

* Remove code duplication. Improve docs signature sections

* Update akka-docs/src/main/paradox/stream/operators/Source-or-Flow/extrapolate.md

Co-Authored-By: Arnout Engelen <github@bzzt.net>

* PR comments

Co-authored-by: Arnout Engelen <github@bzzt.net>
2020-04-29 08:51:32 +02:00
kerr
6b5d544deb
Add Source.fromJavaStream as convenient method alias (#28881) 2020-04-28 11:15:11 +02:00
Christopher Batey
0e3cfbf584
Docs: mergeLatest (#28586) 2020-04-27 17:45:04 +02:00
Christophe De Troyer
c28fd34b65
Minor typo in documentation. (#28687) 2020-04-27 17:16:48 +02:00
Christopher Batey
23ea1a4fed
Docs: flatMapConcat (#28584) 2020-04-27 16:46:16 +02:00
Kirill Yankov
007aa0f710
#28908 - rename returnDefaultPolicy to resetPolicy (#28941) 2020-04-20 17:43:17 +02:00
Bùi Việt Thành
2c6e349c7e scalafix FinalObject - for scalafix ignored files 2020-04-20 17:59:50 +07:00
Kirill Yankov
b78125267f #28869 - example for setting policies in docs (persistence testkit) 2020-04-06 23:04:15 +09:00
Patrik Nordwall
5ac480199a improvements of the PersistenceTestKit doc samples
* and actually run the tests
2020-04-02 16:19:52 +02:00
Renato Cavalcanti
4039a37e41
Merge pull request #28809 from akka/wip-28808-persistence-init-patriknw
Persistence initialization utility #28808
2020-04-01 12:33:14 +02:00
Patrik Nordwall
7e07ee17a6 move to testkit, and docs 2020-03-30 16:24:38 +02:00
Ignasi Marimon-Clos
f683241c40
Docs: examples for io streams with StreamConverters (#28746) 2020-03-27 09:56:59 +01:00
Patrik Nordwall
37d87811b5
Doc example of Streams watch operator, #25468 (#28752) 2020-03-26 18:00:58 +01:00
Kirill Yankov
41f20cbb81
Persistence testkit implementation #15571 (#26825) 2020-03-20 14:18:43 +01:00
Ignasi Marimon-Clos
3d8b4360f0
Docs: Example on the as/fromJavaStream operators (#28745) 2020-03-18 15:54:21 +01:00
Patrik Nordwall
94d5b04d93
Doc example of Sink.ignore, #25468 (#28753) 2020-03-18 12:42:20 +01:00
Johan Andrén
6f23b1fb4b
Update Source.actorRef sample to not use deprecated method #28679 2020-03-12 17:24:31 +01:00
Johan Andrén
d8aed9e9d3
Operator examples for statefulMapConcat #25468 2020-03-10 10:36:07 +01:00
Christopher Batey
0f77212913
Fix takeWhile description (#28703) 2020-03-09 17:15:48 +01:00
Johan Andrén
c46861ed26
Add LogWithMarker to Akka Stream #28450 2020-03-05 15:05:05 +01:00
Nicolas Deverge
72d2b7f034
Issue with the documentation for Partition (#28682)
The sample does not work as the outlet for odd numbers should be connected to the other port.
2020-03-04 17:12:23 +01:00
Christopher Batey
bfebb235d5
Doc onFailureWithBackoff (#28356) 2020-03-03 10:18:34 +01:00
Ignasi Marimon-Clos
8ba9fda183
Adds example to Source.completionStageSource (#28639) 2020-02-27 17:59:01 +01:00
Razvan Vacaru
56c13dcde5
Docs: add code examples for drop and dropWhile Operators (#28613) 2020-02-14 17:21:39 +01:00
yiksanchan
4fb21c380d
Remove not needed ReplicatedDataSerializer 2020-02-11 17:05:51 -08:00
Evgeny Sidorov
dcdaa5a0dd
Example for Source.fromIterator #25468 (#28582)
* add example for Source.fromIterator #25468

* scala fmt code style fix

* don't use test as a sample for docs
2020-02-11 14:58:00 +01:00
Johan Andrén
289ca787a1
Getting started referred to a package name not present in quickstart (#28549)
* Getting started referred to a package name not present in quickstart

Techhub zip has com.example and g8 template defaults to com.example so let's refer to that instead

* Missing logger ops in one Scala example snippet
2020-02-04 14:41:01 +01:00