Echo JS 0.11.0

<~>

tracker1 comments

tracker1 2126 days ago. link 2 points
Would like to +1 this a few times over.  Nice write-up and an interesting approach.  I would have the "isEvent" check also check that the parameter is typeof "function" though.
tracker1 2129 days ago. link 1 point
About the only thing I'd really like to see added, though would make adapters much more complex, would be range query support against the keys.  Some of the underlying adapters make it a bit of a pain, but it's doable.

I'm using a similar abstraction in one of my current projects, and that's the only real difference and a feature that I needed.

Should also be able to create a Cassandra adapter, which should work/scale well.
tracker1 2129 days ago. link 1 point
This is a decent tutorial for this use... It's worth noting some gotchas and an alternative wrapper.

An alterntavie with some orchestration and version upgrade management https://github.com/godaddy/node-cluster-service

You can also make use of worker_threads module for handing each request across a pool.  This just entered stable, instead of behind a flag, I would suspect that there will soon be options for scaling in the box.  Since it will have lower overhead than full cluster.

Beyond this, if you're using something like Kubernetes, then just scale your instances there and have ingress configured... There's no need for multiple layers of scaling/proxying requests.
tracker1 2129 days ago. link 2 points
I'm pretty sure ES2019 already cut.  A lot of the features being discussed in the article are not Stage 4 (final).

One of the features mentioned (pipeline operator) is actually something I really think could be great, but there are some competing versions, and no idea which is leading.  I can't help but feel it may be held up for some time, similar to decorators.

Here's a list of what was actually added for ES2019.

There are no "potential" es2019 features... it's already cut... this is a list of the actual features added for ES2019.

https://alligator.io/js/es2019/
tracker1 2133 days ago. link 2 points
Quick tutorial to startup postgraphile ... looks like it relies on Postgres' security model for access controls, which could be cumbersome.
tracker1 2133 days ago. link 1 point
Edited description and link to use github repo.
tracker1 2134 days ago. link 2 points
There is no such thing as a "JSON Object" there is JSON (a UTF-8 string of an encoded value) and there are Objects (in memory representation of properties and values).
tracker1 2134 days ago. link 3 points
Yes... if your security relies on obfuscation of JS, you have no real security.
tracker1 2134 days ago. link 1 point
node-fetch... I'll actually just set global.fetch = node-fetch in my starter...  this way all code is similar or the same between node server and js/browser client.
[more]