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
|
||||
============
|
||||
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 |
|
||||
+---------+
|
||||
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -26,28 +26,28 @@ private object PoolFlow {
|
|||
/*
|
||||
Pool Flow Stream Setup
|
||||
======================
|
||||
+-------------------+
|
||||
| |
|
||||
+----> | Connection Slot 1 +---->
|
||||
| | | |
|
||||
| +---+---------------+ |
|
||||
| | |
|
||||
+-----------+ | +-------------------+ | +---------------+
|
||||
RequestContext | +----+ | | +----> | | ResponseContext
|
||||
+----------------> | Conductor |---------> | Connection Slot 2 +---------> | responseMerge +------------------>
|
||||
| +----+ | | +----> | |
|
||||
+-----------+ | +---------+---------+ | +---------------+
|
||||
^ | | | |
|
||||
| | +-------------------+ |
|
||||
| | | | |
|
||||
RawSlotEvent | +----> | Connection Slot 3 +---->
|
||||
| | |
|
||||
| +---------------+---+
|
||||
| | | |
|
||||
+-----------+ RawSlotEvent | | |
|
||||
| slotEvent | <-------------+ | |
|
||||
| Merge | <-------------------+ |
|
||||
| | <-------------------------+
|
||||
+-------------------+
|
||||
| |
|
||||
+----> | Connection Slot 1 +---->
|
||||
| | | |
|
||||
| +---+---------------+ |
|
||||
| | |
|
||||
+-----------+ | +-------------------+ | +---------------+
|
||||
RequestContext | +----+ | | +----> | | ResponseContext
|
||||
+----------------> | Conductor |---------> | Connection Slot 2 +---------> | responseMerge +------------------>
|
||||
| +----+ | | +----> | |
|
||||
+-----------+ | +---------+---------+ | +---------------+
|
||||
^ | | | |
|
||||
| | +-------------------+ |
|
||||
| | | | |
|
||||
RawSlotEvent | +----> | Connection Slot 3 +---->
|
||||
| | |
|
||||
| +---------------+---+
|
||||
| | | |
|
||||
+-----------+ RawSlotEvent | | |
|
||||
| slotEvent | <-------------+ | |
|
||||
| Merge | <-------------------+ |
|
||||
| | <-------------------------+
|
||||
+-----------+
|
||||
|
||||
Conductor:
|
||||
|
|
|
|||
|
|
@ -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
|
||||
| (to Conductor
|
||||
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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue