Planner for cutting stoke problem
How to build
sbt stage
Computation graph
File Source Parallel Source Parallel Flows
+----------+ +-----------+ +------------+
|csv_line0 |---|distribute |--+ +- |cuttingStock|----+
+----------+ +-----------+ | Fan-in stage | +------------+ |
+----------+ +-----------+ | +------+ +-----------------+ +-------+ | +------------+ | +-----+ +----------+
|csv_line1 |---|distribute |----|Merge |--|flatMapConcat |--|Balance|----|cuttingStock |-------|Merge|---|Sink actor|--- ChunkedHttpResponse
+----------+ +-----------+ | +------+ +-----------------+ +-------+ | +------------+ | +-----+ +----------+
| | +------------+ |
+----------+ +-----------+ | +--|cuttingStock|----+
|csv_line2 |---|distribute |--+ +------------+
+----------+ +-----------+
Httpie
http POST http://127.0.0.1:8001/orders < ./csv/metal2pipes3.csv Accept:application/json Content-Type text/csv --stream