brillout / wildcard-api

Functions as API.
MIT License
368 stars 14 forks source link

Prior art #53

Closed Raynos closed 4 years ago

Raynos commented 4 years ago

This is a cool idea,

I used https://github.com/substack/dnode in the past to achieve this.

Have you looked at dnode ?

brillout commented 4 years ago

Yes and dnode is not the only RPC implementation.

Wildcard aims to be simple whereas other solutions are convoluted and not ergonomic.

Let me know if there is anything you dislike about Wildcard and like about alternatives. I'm curious.

brillout commented 4 years ago

What did you end up using? Did you find an alternative to Wildcard that you prefer? I'm curious :)

Raynos commented 4 years ago

Oh, I don’t use RPC at the moment.

App <=> server communication is HTTP 1.1 with tearlike apis.

I’ve used tchannel in the past for RPC and would also look at using grpc / protobuf. But I don’t need RPC at the moment

brillout commented 4 years ago

These are great for cross-platform communication. Wildcard is basically RPC well-polished for browser-side <-> Node.js. Simpler and supports use cases that are unique to full-stack JS, such as TS and SSR.

brillout commented 4 years ago

Let me know if you have any other question.