Open rjmk opened 7 years ago
re: https://github.com/nstackcom/nstack-docs/issues/1#issuecomment-279738143
Yeah, maybe the MVP is the nstack-examples repo
This will partly be solved by #17, which covers various scenarios, but it would be helpful to have some common examples too.
Anyone got any cool ideas here? I was thinking things like:
Doubles
def resusableEndpoint = sources.http : (Double, Double, Double, Double) { http_path = "/endpoint" };
def customerSink = sinks.postgres : (Double, Double, Double, Double) { postgres_host = "localhost", pg_database = "db", pg_table = "tbl" };
def workflow = reusableEndpoint | customerSink
def pgPartialSrc = sources.postgres : Text {
pg_host = "localhost",
pg_port = "5432",
pg_user = "user",
pg_password = "123456",
pg_database = "db"
};
def workflow = pgPartialSrc { pg_query = "SELECT * FROM tbl;" } | myModule.Workflow | sinks.log : Text;
def safeCustomerSource = sources.http : { customerId : Text } { http_path = "/customers" } | Customers.EnsureCustomerExists;
User Stories
Notes from Epic
Examples / 'Cookbook'
Other notes
When we productionise, what are the features we want to show off? Might be cool if we start with a workflow with a subtle bug, productionise and then catch the bug
What is the minimum version of this and a sketch of an iteration plan?