opral / inlang-message-sdk

0 stars 0 forks source link

Design for sdk core with non-reactive internal implementation + separate reactive api #15

Open jldec opened 3 months ago

jldec commented 3 months ago

Context/Problem

The current sdk implementation does not scale well. Reactive solid.js effects for messages and lint reports consume excessive CPU and memory resources as the number of messages grows. (see MESDK-29 and loom)

Proposal

SDK reactive API(3)

from https://app.excalidraw.com/s/1RmnkzJA3Ph/27CVKAmMGKx

samuelstroschein commented 3 months ago

Requirements that need to be fulfilled:

  1. non reactive plain node, js (CLI, paraglide)
  2. how to subscribe in plain JS (sherlock, web components)
  3. how to subscribe in frameworks (fink [solid], parrot [react])

I recommend prototyping with those three environments

NilsJacobsen commented 2 months ago

Do you plan to remove framework-specific wrapper? @jldec