DEV Community

Cover image for External Resource Management
Valery Zinchenko
Valery Zinchenko

Posted on

External Resource Management

Hello, I as always working on interesting ideas for dev tools, BTW I'm totally Open Source developer, so they're gonna be independent and free.

Now I'm focused on several ideas such as External Resource or External Store, or as per Ably LiveSync.

But comparing to Ably's LiveSync, my idea is a completely Frontend part, which should accept potentially any source of data (HTTP, WebSocket, EventSource, ...). Which will contain such sources, initiate and get updated by them.

With this idea, it should solve some of Data Flow problems in Frontend by encapsulating sources in one "Resource" entity giving Observable state with controls (e.g. CRUD) and eventful nature for better customization.

In simple words, this should be something between TanStack Query and Ably's LiveSync.

What is your impression?

Top comments (1)

Collapse
 
framemuse profile image
Valery Zinchenko

There are always difficulties with events source(Websocket, EventSource).

Also finding right keys for storing data, storing them or remember is a big problem since it explicitly violates application data borders.

It makes code so messy to conditionally refetch or optimistically do something out of main consumer.