replace thin spaces with regular spaces (to make diagrams look good) (#20696)
This commit is contained in:
parent
609fb0ec03
commit
02904212bd
3 changed files with 42 additions and 42 deletions
|
|
@ -44,22 +44,22 @@ private object PoolConductor {
|
||||||
/*
|
/*
|
||||||
Stream Setup
|
Stream Setup
|
||||||
============
|
============
|
||||||
Request-
|
Request-
|
||||||
Request- +-----------+ +-----------+ Switch- +-------------+ +-----------+ Context
|
Request- +-----------+ +-----------+ Switch- +-------------+ +-----------+ Context
|
||||||
Context | retry | | slot- | Command | doubler | | route +-------------->
|
Context | retry | | slot- | Command | doubler | | route +-------------->
|
||||||
+--------->| Merge +---->| Selector +-------------->| (MapConcat) +---->| (Flexi +-------------->
|
+--------->| Merge +---->| Selector +-------------->| (MapConcat) +---->| (Flexi +-------------->
|
||||||
| | | | | | | Route) +-------------->
|
| | | | | | | Route) +-------------->
|
||||||
+----+------+ +-----+-----+ +-------------+ +-----------+ to slots
|
+----+------+ +-----+-----+ +-------------+ +-----------+ to slots
|
||||||
^ ^
|
^ ^
|
||||||
| | SlotEvent
|
| | SlotEvent
|
||||||
| +----+----+
|
| +----+----+
|
||||||
| | flatten | mapAsync
|
| | flatten | mapAsync
|
||||||
| +----+----+
|
| +----+----+
|
||||||
| | RawSlotEvent
|
| | RawSlotEvent
|
||||||
| Request- |
|
| Request- |
|
||||||
| Context +---------+
|
| Context +---------+
|
||||||
+-------------+ retry |<-------- RawSlotEvent (from slotEventMerge)
|
+-------------+ retry |<-------- RawSlotEvent (from slotEventMerge)
|
||||||
| Split |
|
| Split |
|
||||||
+---------+
|
+---------+
|
||||||
|
|
||||||
*/
|
*/
|
||||||
|
|
|
||||||
|
|
@ -26,28 +26,28 @@ private object PoolFlow {
|
||||||
/*
|
/*
|
||||||
Pool Flow Stream Setup
|
Pool Flow Stream Setup
|
||||||
======================
|
======================
|
||||||
+-------------------+
|
+-------------------+
|
||||||
| |
|
| |
|
||||||
+----> | Connection Slot 1 +---->
|
+----> | Connection Slot 1 +---->
|
||||||
| | | |
|
| | | |
|
||||||
| +---+---------------+ |
|
| +---+---------------+ |
|
||||||
| | |
|
| | |
|
||||||
+-----------+ | +-------------------+ | +---------------+
|
+-----------+ | +-------------------+ | +---------------+
|
||||||
RequestContext | +----+ | | +----> | | ResponseContext
|
RequestContext | +----+ | | +----> | | ResponseContext
|
||||||
+----------------> | Conductor |---------> | Connection Slot 2 +---------> | responseMerge +------------------>
|
+----------------> | Conductor |---------> | Connection Slot 2 +---------> | responseMerge +------------------>
|
||||||
| +----+ | | +----> | |
|
| +----+ | | +----> | |
|
||||||
+-----------+ | +---------+---------+ | +---------------+
|
+-----------+ | +---------+---------+ | +---------------+
|
||||||
^ | | | |
|
^ | | | |
|
||||||
| | +-------------------+ |
|
| | +-------------------+ |
|
||||||
| | | | |
|
| | | | |
|
||||||
RawSlotEvent | +----> | Connection Slot 3 +---->
|
RawSlotEvent | +----> | Connection Slot 3 +---->
|
||||||
| | |
|
| | |
|
||||||
| +---------------+---+
|
| +---------------+---+
|
||||||
| | | |
|
| | | |
|
||||||
+-----------+ RawSlotEvent | | |
|
+-----------+ RawSlotEvent | | |
|
||||||
| slotEvent | <-------------+ | |
|
| slotEvent | <-------------+ | |
|
||||||
| Merge | <-------------------+ |
|
| Merge | <-------------------+ |
|
||||||
| | <-------------------------+
|
| | <-------------------------+
|
||||||
+-----------+
|
+-----------+
|
||||||
|
|
||||||
Conductor:
|
Conductor:
|
||||||
|
|
|
||||||
|
|
@ -37,15 +37,15 @@ private object PoolSlot {
|
||||||
Stream Setup
|
Stream Setup
|
||||||
============
|
============
|
||||||
|
|
||||||
Request- +-----------+ +-------------+ +-------------+ +------------+
|
Request- +-----------+ +-------------+ +-------------+ +------------+
|
||||||
Context | Slot- | List[ | flatten | Processor- | doubler | | SlotEvent- | Response-
|
Context | Slot- | List[ | flatten | Processor- | doubler | | SlotEvent- | Response-
|
||||||
+--------->| Processor +------------->| (MapConcat) +------------->| (MapConcat) +---->| Split +------------->
|
+--------->| Processor +------------->| (MapConcat) +------------->| (MapConcat) +---->| Split +------------->
|
||||||
| | Processor- | | Out | | | | Context
|
| | Processor- | | Out | | | | Context
|
||||||
+-----------+ Out] +-------------+ +-------------+ +-----+------+
|
+-----------+ Out] +-------------+ +-------------+ +-----+------+
|
||||||
| RawSlotEvent
|
| RawSlotEvent
|
||||||
| (to Conductor
|
| (to Conductor
|
||||||
| via slotEventMerge)
|
| via slotEventMerge)
|
||||||
v
|
v
|
||||||
*/
|
*/
|
||||||
def apply(slotIx: Int, connectionFlow: Flow[HttpRequest, HttpResponse, Any],
|
def apply(slotIx: Int, connectionFlow: Flow[HttpRequest, HttpResponse, Any],
|
||||||
settings: ConnectionPoolSettings)(implicit system: ActorSystem,
|
settings: ConnectionPoolSettings)(implicit system: ActorSystem,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue