Better HN
topnewbestaskshowjobs
Log inSign up

palberg7

5 karma · joined Dec 24, 2019 (6y ago) · 9 submissions

Submissions

comment 6y ago · link · parent

Interesting, thanks

comment 6y ago · link · parent

Yes that's what I want to do. Although I don't need caching (yet?)

comment 6y ago · link · parent

Thanks that made a lot of sense.

comment 6y ago · link · parent

Agree and that's exactly what I want to do. I want to define and call functions as if they were local. I control both client and server.

For Node.js there is https://github.com/reframejs/wildcard-api

comment 6y ago · link · parent

What do you think of FastAPI?

comment 6y ago · link · parent

True it's still much less cumbersome.

comment 6y ago · link · parent

> Rest is (simplified) just a way of expressing your routes as resource

What is the benefit of doing that? RPC seems much "better" than REST.

comment 6y ago · link · parent

> services such as https://restdb.io/ or https://fauna.com/

These are a no-go. Why should I use a proprietary solution when there are superior free open source offerings? Sure it's more effort to spin up an aws ec2 instance but that's very well worth it. I then have full control over my database and I don't have to deal with proprietary sh*t.

> RPC-named express routes is more than sufficient

Yes RPC is exactly what I was looking for. It's super simple. I don't need all that REST and GraphQL stuff.

> REST solves

Honestly, I don't understand what REST solves.

> over-engineering a simple app can lead to greater confusion.

Yes simplicity is key.

> RPC-named express routes is more than sufficient

Actually for Node.js there is Wildcard API[1] which I discovered yesterday. It's even simpler than express routes.

[1]: https://github.com/reframejs/wildcard-api

9.

Ask HN: Other than REST and GraphQL, what do you guys use?

25 points · by palberg7 · 6y ago · 19 comments