https://discord.cloudflare.com logo
Join Discord
Powered by
# durable-objects
  • j

    JacobBolda

    01/10/2021, 2:48 PM
    Good to know, thanks, I should have written more in that box, haha.
  • b

    balupton

    01/10/2021, 6:46 PM
    I asked about that use case on the forum: https://community.cloudflare.com/t/offline-first-durable-objects-kv/230015 Keen to follow your work here as I have pretty much the same goal. Do you have a github? You may also want to look into Fauna.com and MongoDB Realm
  • h

    haneefmubarak

    01/10/2021, 8:11 PM
    I imagine that'd be best accomplished via the use of client-side CRDTs and reconciliation server-side, but it's a neat idea all the same
  • h

    haneefmubarak

    01/10/2021, 8:13 PM
    I've previously found automerge (https://github.com/automerge/automerge) interesting for this kind of synchronization usecase (although I can't speak to its particular usefulness for whatever specific thing you might want to do)
  • z

    Zafar Ansari

    01/11/2021, 3:40 AM
    @haneefmubarak Is cloudflare working on database product based on durable objects?
  • h

    haneefmubarak

    01/11/2021, 3:53 AM
    I can't meaningfully comment on any kind of roadmaps, but I don't quite understand your question either
  • h

    haneefmubarak

    01/11/2021, 3:56 AM
    Durable Objects basically gives you a mini-database (persistent storage) at the edge for each Durable Object that you create that you can access from within that Durable Object
  • h

    haneefmubarak

    01/11/2021, 3:56 AM
    see: https://developers.cloudflare.com/workers/learning/using-durable-objects
  • j

    Judge

    01/11/2021, 4:43 PM
    ya, durable objects are already effectively a nosql database, just one that automatically dehydrates and rehydrates entries as JS objects.
  • z

    Zafar Ansari

    01/11/2021, 5:47 PM
    But there is no query language.
  • h

    haneefmubarak

    01/11/2021, 6:25 PM
    We don't have a stringy query language, but there's a query API that we're carefully improving regularly: https://developers.cloudflare.com/workers/runtime-apis/durable-objects#transactional-storage-api
  • h

    haneefmubarak

    01/11/2021, 6:28 PM
    In addition to the basic CRUD operations, it supports various kinds of pre-indexed filtering along with atomic transactions
  • h

    haneefmubarak

    01/11/2021, 6:30 PM
    Is there something in particular that you would like to do or have in mind that you feel is not currently doable with the query API as it stands today?
  • s

    SirJosh

    01/11/2021, 6:42 PM
    personally i feel that a strongly typed query api is a far superior alternative to text based query and i'm glad it is the way it is
  • h

    haneefmubarak

    01/11/2021, 6:53 PM
    Yeah the concern that I always have with stringy query languages is the combined effects of trivial mistakes and injection
  • z

    Zafar Ansari

    01/11/2021, 7:18 PM
    I would like to see a query language like WOQL https://terminusdb.com/docs/discussion/query/
  • z

    Zafar Ansari

    01/11/2021, 7:19 PM
    WOQL is very powerful and easy to understand.
  • h

    haneefmubarak

    01/11/2021, 8:20 PM
    Gotcha. I can't speak to roadmaps, but that being said, DO provides a high-performance transactional KV store with range queries as a database. You could build whatever kind of DB you want on top of this in a reasonably efficient manner (AIUI most modern databases are built on top of transactional KV stores underneath) if that would be helpful for your usecase (and we'd love to hear about it in the channel if you do!)
  • j

    JustinNoel

    01/12/2021, 8:13 AM
    > DO provides a high-performance transactional KV store with range queries Do you have a link to this? I can't find it anywhere on the DO site or searching
  • f

    firefall

    01/12/2021, 2:29 PM
    when is the new DO beta round and how do I get in? I've sent the request of course (in December).
  • j

    JustinNoel

    01/12/2021, 2:40 PM
    Oh, duh! DO = Durable Objects. LOL - I'm so used to it meaning Digital Ocean. Hence I was confused about it being advertised here.
  • w

    wilbo007

    01/12/2021, 2:45 PM
    Hehe you’re not alone
  • a

    albert-zhao

    01/12/2021, 2:48 PM
    It may be a while given how much work the team is still doing. However, when they do start adding more, it'd be good to know what use case you had in mind with Durable Objects?
  • f

    firefall

    01/12/2021, 2:51 PM
    some fancy real-time (web, progressive, native, desktop, whatever) app!
  • t

    timsuchanek

    01/12/2021, 5:45 PM
    Shameless question: Is it possible to get into the durable objects beta? (I sent the request a day or two after the announcement last year)
  • i

    itsmatteomanf

    01/12/2021, 5:56 PM
    You need to talk to @albert-zhao, he has the power 🤣
  • e

    eidam | SuperSaaS

    01/12/2021, 5:57 PM
    Shameless tag 🤣
  • a

    albert-zhao

    01/12/2021, 6:00 PM
    Can you share what you'd like to try with Durable Objects? 🙂 There's a pause on adding people atm to ship stuff, so that's why many applications are on hold.
  • i

    itsmatteomanf

    01/12/2021, 6:03 PM
    He is literally mentioned in the channel description... ahah
  • f

    firefall

    01/12/2021, 6:46 PM
    given the pause you mentioned, do we still need to share what we're going to do with DO? there is still a possibility to get into the beta?
1...678...567Latest