PromisePipeinception
business logic with
PromisePipe()
looks like a Promise
that returns a Promise
you just build a chain of transformations
and use them multiple times
chains could be async
the core API is lean
but you can extend it
and build your own domain specific API for business logic
what conventional APIs do• convert the data into the combination of HTTP
method, API URL and body.
• make an HTTP request
• catch the request on server side
• try to decode the combination of method, API URL and body into original data and function to call.
• call the business logic function with the data.
what you actually want to do
• call the business logic function with the data on server.
business logic
on client on server
business logic
on client on server
connect PP stream to connector
pass files through connectors
cache chains with PromisePipes
Q&A
https://github.com/edjafarov/PromisePipe
https://twitter.com/edjafarov