cosmjs icon indicating copy to clipboard operation
cosmjs copied to clipboard

Design best practices for reactive apps

Open ethanfrey opened this issue 5 years ago • 0 comments

Continuing a discussion from https://github.com/confio/cosmwasm-js/pull/99

@webmaster128 had concerns with the Stream interface we provide, both polling and websockets (with reconnect issues). These are important concerns as he has worked with said interface around a year at iov and has had many learnings.

That said, the entire design of "reactive frontend apps" is only getting bigger and bigger and I would like to work out some way to support that, even if it involved changes to a backend rpc server. Let us explore what other popular frameworks do and how they handle edge cases about breaking subscriptions, etc.

Some good examples:

Meteor

Apollo

I'd love to hear a deeper look into these protocols or other references. I don't think anyone has a perfect solution, but good to look how they tackle these problems (and maybe we can build on one?)

ethanfrey avatar Feb 18 '20 11:02 ethanfrey