Fork me on GitHub
#datomic
<
2020-11-09
>
xceno16:11:03

I have an application running as datomic ion. I'll need to upload a bunch of binary files between 1MB-100MB. There's a stack overflow answer (https://stackoverflow.com/a/10569048/932315) that brings up some points I'd like to clarify: • Is it a good idea to store blobs in datomic if I disable the history for them? • Does it make sense to store files as a datomic byte array? • Or should I rather upload the files to S3 and save the URL in an attribute?

Nassin16:11:59

Last one, cloud doesn't have the byte array type

Nassin16:11:00

In on-premise it's only used for very small binary data anyway

joshkh16:11:02

seconded - put those files in S3 where they belong

xceno16:11:01

Alright, thanks guys!

souenzzo13:11:26

there is docs about how to do permissions on datomic-ions? Last time I tryied there is no docs, my solution break the cloudformation and I get 1 day of downtime

xceno13:11:48

It took me almost two weeks to get my initial setup up and running. I initially went with solo but upgraded to production later on. Anyhow, I have my own permission / auth system right now as ring-middleware. It provides the very basics, but if I find time I want/need to switch over to using AWS Cognito. From what I've seen in the forums there are some people using Ions + Cognito in production, but there aren't any docs or examples in the wild. At least I haven't found any, if you do, please let me know

joshkh16:11:48

only just saw this thread, but in case you haven't found an answer yet @U2J4FRT2T, can you clarify by what you mean as permissions? user permissions to your api? permissions for your ion to access other AWS services?

souenzzo18:11:04

How to customize the IAM of the machines created by DatomicCloudCloudFormation template It isn't just "find the the group and add the permission" If you do that (like i did) you will not be able to remove/upgrade the CloudFormation because it will fail

joshkh13:11:35

i'm sure you've already seen this, and/or maybe it doesn't do what you need, but you can add a custom IAM policy to the EC2 nodes via the ions CF template https://docs.datomic.com/cloud/operation/access-control.html#add-policy-to-nodes

👍 3
camdez18:11:54

If I transact against a connection, then get a db value from that connection via datomic.api/db , and then query that db, are the newly transacted values guaranteed to be included in the db queried?

camdez18:11:14

(Note that I’m not talking about explicitly using the :db-after value here.)

favila18:11:30

That db is guaranteed to be at or after. Because other transactions may have happened in the meantime, you’re not guaranteed that any particular value is in there

favila19:11:40

put it differently: the peer receives transaction updates in-order via a single queue. Your d/transact future finalizes when it sees the result of its request on that queue. So it’s not possible for a d/db call to not see that tx yet if it ran after the future finished

favila19:11:23

you can access this queue yourself via d/tx-report-queue

camdez19:11:38

Thanks, @U09R86PA4! That’s what I meant to ask, I just worded it poorly. I’ve been operating under this assumption for a while and had a bug today that had me questioning my sanity. 😛 Just got it figured out though. Much appreciated.