restatedev / examples

Restate examples
https://restate.dev
MIT License
45 stars 9 forks source link

Write handler API examples with more concise API #79

Closed gvdongen closed 9 months ago

gvdongen commented 9 months ago

Use syntax similar to:

const router = restate.keyedRouter({
    greet: async (ctx: restate.RpcContext, name: string) => {
        return `Hello ${name} :-)`;
    },
});

to have easier overview of which routers functions are binded to.

### Tasks
- [ ] https://github.com/restatedev/examples/issues/84
- [ ] https://github.com/restatedev/examples/issues/91
- [ ] https://github.com/restatedev/examples/issues/88
gvdongen commented 9 months ago

I have done this for some of the examples. Not all of them, since it's sometimes nice to see some different ways of implementing services.