Fork me on GitHub
#hyperfiddle
<
2024-08-02
>
Dave Mays04:08:48

What's the favorite way to deploy a production Electric based application? Say you were ready to deploy the Electric XTDB demo as a production site, is there a straight forward way to deploy to something like http://Fly.io? Do you deploy the database together with the application or separately?

Dustin Getz08:08:19

digital ocean is the most straightforward way - database and java app on same machine

Dustin Getz08:08:37

graduate to aws

henrik09:08:43

We’ve done this on Fly. DB and app on the same server, with their postgres thing as durable storage.

grounded_sage16:08:11

I know this isn’t the priority of Electric but it would be super nice to be able to front end only build. I prefer Electric over React for developing the front end and sometimes “webapps” live inside of other ecosystems like Telegram mini apps. Contemplating a small gig but my only pause is having to step away from this experience

markaddleman16:08:52

I believe this is in the plan for Electric v3. Check out https://clojurians.slack.com/archives/C7Q9GSHFV/p1722431682180419

grounded_sage16:08:15

Is this true @U09K620SG? I thought I saw you say it would be easier to do. But will it be possible without being hacky?

Dustin Getz16:08:01

in principle

grounded_sage16:08:43

Hmm. I would like to test drive.

Vincent16:08:04

Anyone working on an internal knowledge thingy in electric clojure? Some starting points from a thread in offtopic https://github.com/nextjournal/clerk https://github.com/zeitstein/brimm

mattias19:08:25

I sketched out my thoughts on a PKM in this repo: https://github.com/subspace-ai/subspace/tree/master But tesserae looks pretty great, am thinking of basing v2 of subspace on tesserae. Will maybe sketch out the UI once electric v3 is out.

clojure-spin 1
🙏 1
Vincent20:08:27

Funk yes that's right subspace looks like it's along the same lines. So cool!

❤️ 1
Vincent20:08:46

Sketch out the UI today in your notebook 😜

refset22:08:03

Some starting points from a thread in offtopicthanks for mentioning this thread! it's got a lot of good opinions and ideas in it. For ease of reference it's here: https://clojurians.slack.com/archives/C03RZGPG3/p1722439345938229 And now I'm wondering whether Slack will add backlinks someday 😅 for more non-Electric-specific PKM chat feel free to use #tools-for-thought

Tommy19:08:59

is there a way to get a missionary flow of new xtdb dbs while not using the in-process node? I want a persistent xtdb (lmdb backend) and to use electric with it. Thttps://github.com/hyperfiddle/electric-fiddle/blob/28b875d3eaa77f2d8b4716f383ba8f5ed2e1b92e/src/xtdb_demo/xtdb_contrib.clj#L6 still says it only works for in-process node

Tommy19:08:54

just tried it with lmdb node, and it worked fine! is this comment worth updating? did something change?

🙌 1
refset19:08:22

in-process != in-memory - LMDB counts as in-process too. The example for being out-of-process would mean using XT's HTTP stack (the server and client modules)

👍 1
xificurC20:08:22

Not writing that as (not= in-process in-memory) is just blasphemy

😅 1
refset20:08:15

gosh, you're right...I've been writing so much SQL recently that I initially wrote in-process <> in-memory

😁 1
Dustin Getz20:08:28

what does "LMDB" mean

refset20:08:04

as in using the popular embedded key-value store LMDB as the index storage for XTDB v1 (and potentially also for tx-log + doc-store components), see https://v1-docs.xtdb.com/storage/lmdb/

🙏 1
👍 1