Fork me on GitHub
#hyperfiddle
<
2024-02-29
>
milelo09:02:16

I'm trying to develop an application on electric and xtdb-in-a-box based on https://github.com/hyperfiddle/electric-starter-app. The server needs to serve two clients, a very simple one at the root that needs to load fast over a slow mobile connection and a potentially much larger client at "/admin" which will have good connectivity. I've had a look at electric fiddle, I don't fully understand its routing yet, I'm guessing it behaves similar to a condition on a reactive value, however it seems the clients share the same runtime-code, an approach which wouldn't support my use-case. It seems to me I need to split my code to have two distinct clients that compile separately against common server code and modify server-jetty.clj middleware to add a conventional router to serve these up with two electric-entrypoints and reactors. Are there likely to be any issues with this? Are there any existing examples of such an approach? TIA

Dustin Getz12:02:30

two electric servers is not a tested configuration but i don't see why not

👍 1