Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Write handler API examples with more concise API #79

Closed
3 tasks done
gvdongen opened this issue Jan 30, 2024 · 1 comment · Fixed by #89
Closed
3 tasks done

Write handler API examples with more concise API #79

gvdongen opened this issue Jan 30, 2024 · 1 comment · Fixed by #89
Assignees

Comments

@gvdongen
Copy link
Collaborator

gvdongen commented Jan 30, 2024

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

  1. gvdongen
@gvdongen
Copy link
Collaborator Author

gvdongen commented Feb 1, 2024

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.

@gvdongen gvdongen closed this as completed Feb 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant