replace thin spaces with regular spaces (to make diagrams look good) (#20696)

This commit is contained in:
2beaucoup 2016-06-02 11:38:34 +02:00 committed by Konrad Malawski
parent 609fb0ec03
commit 02904212bd
3 changed files with 42 additions and 42 deletions

View file

@ -44,22 +44,22 @@ private object PoolConductor {
/*
Stream Setup
============
Request-
Request- +-----------+ +-----------+ Switch- +-------------+ +-----------+ Context
Context | retry | | slot- | Command | doubler | | route +-------------->
+--------->| Merge +---->|Selector +-------------->| (MapConcat) +---->| (Flexi +-------------->
| | | | | | | Route) +-------------->
+----+------+ +-----+-----+ +-------------+ +-----------+ to slots
^ ^
Request-
Request- +-----------+ +-----------+ Switch- +-------------+ +-----------+ Context
Context | retry | | slot- | Command | doubler | | route +-------------->
+--------->| Merge +---->| Selector +-------------->| (MapConcat) +---->| (Flexi +-------------->
| | | | | | | Route) +-------------->
+----+------+ +-----+-----+ +-------------+ +-----------+ to slots
^ ^
| | SlotEvent
| +----+----+
| |flatten | mapAsync
| | flatten | mapAsync
| +----+----+
| |RawSlotEvent
| Request- |
| | RawSlotEvent
| Request- |
| Context +---------+
+-------------+ retry |<-------- RawSlotEvent (from slotEventMerge)
| Split |
+-------------+ retry |<-------- RawSlotEvent (from slotEventMerge)
| Split |
+---------+
*/

View file

@ -26,28 +26,28 @@ private object PoolFlow {
/*
Pool Flow Stream Setup
======================
+-------------------+
||
+---->|ConnectionSlot1+---->
||||
|+---+---------------+|
|| |
+-----------+|+-------------------+|+---------------+
RequestContext |+----+||+---->|| ResponseContext
+---------------->|Conductor|--------->|ConnectionSlot2+--------->|responseMerge+------------------>
|+----+||+---->||
+-----------+|+---------+---------+|+---------------+
^ ||| |
| |+-------------------+|
| ||||
RawSlotEvent| +---->|ConnectionSlot3+---->
| ||
| +---------------+---+
| | ||
+-----------+ RawSlotEvent | ||
|slotEvent| <-------------+ ||
| Merge | <-------------------+|
|| <-------------------------+
+-------------------+
| |
+----> | Connection Slot 1 +---->
| | | |
| +---+---------------+ |
| | |
+-----------+ | +-------------------+ | +---------------+
RequestContext | +----+ | | +----> | | ResponseContext
+----------------> | Conductor |---------> | Connection Slot 2 +---------> | responseMerge +------------------>
| +----+ | | +----> | |
+-----------+ | +---------+---------+ | +---------------+
^ | | | |
| | +-------------------+ |
| | | | |
RawSlotEvent | +----> | Connection Slot 3 +---->
| | |
| +---------------+---+
| | | |
+-----------+ RawSlotEvent | | |
| slotEvent | <-------------+ | |
| Merge | <-------------------+ |
| | <-------------------------+
+-----------+
Conductor:

View file

@ -37,15 +37,15 @@ private object PoolSlot {
Stream Setup
============
Request- +-----------+ +-------------+ +-------------+ +------------+
Context |Slot-| List[ | flatten | Processor- | doubler | |SlotEvent-| Response-
+--------->|Processor+------------->| (MapConcat) +------------->| (MapConcat) +---->|Split+------------->
|| Processor- | | Out | | || Context
+-----------+ Out] +-------------+ +-------------+ +-----+------+
|RawSlotEvent
|(toConductor
Request- +-----------+ +-------------+ +-------------+ +------------+
Context | Slot- | List[ | flatten | Processor- | doubler | | SlotEvent- | Response-
+--------->| Processor +------------->| (MapConcat) +------------->| (MapConcat) +---->| Split +------------->
| | Processor- | | Out | | | | Context
+-----------+ Out] +-------------+ +-------------+ +-----+------+
| RawSlotEvent
| (to Conductor
| via slotEventMerge)
v
v
*/
def apply(slotIx: Int, connectionFlow: Flow[HttpRequest, HttpResponse, Any],
settings: ConnectionPoolSettings)(implicit system: ActorSystem,