Giter Site home page Giter Site logo

deno-workflows's People

Contributors

mcandeia avatar

Stargazers

 avatar  avatar

Watchers

 avatar

deno-workflows's Issues

Implement search database for querying indexed executions and events

https://github.com/mcandeia/deno-workflows/blob/main/backends/search.ts

The database for searching executions and events is different from the transactional database. They differ not only in the data model but also in the required capabilities. The transactional database a.k.a WRITE database does not need to support any indexed search, unlike the search database which should support pagination and other complex queries.

The searchDB should be used on the API for querying events and executions

Add race(...commandList) and all(...commandList) commands

They should work exactly how Promise.all and Promise.race works but for commands.

const payloadOrVoid = yield ctx.race([ctx.sleep(10 *Second), ctx.waitForSignal("sms_response")]

This should be modeled as a single command that contains two commands in it. Similarly, a single event should contain execution of both commands.

Add e2e tests in a separated repository

E2E tests should include

  • Prove workflow durability (with intermitent failures)
  • Prove workflow atomicity (no event commit if the workflow wasn't executed)
  • Performance tests for workers (throughput, how long it takes to process 100 workflows of the same types using N workers?)
  • Use timers and measure discrepancy between reality and execution time

Allow inline run based on a trust-list configuration

Support inline run for workflows based on a trust-list configuration,

The inline support should be based on the workflow alias which can be either, a well-known alias or a reference to a workflow.

The inline alias should follow the following format: inline:${runtime}:${runtime_based_params}

e.g

For the deno runtime params it should be

inline:deno:${ts_file_url}

for the http it should be

inline:http:${http_func_url}

The modifications that needs to be done is all within the same file: https://github.com/mcandeia/deno-workflows/blob/main/registry/registries.ts#L141

A validation might be necessary based on a trust list of such runtime can be used inline with such parameters.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.