Fork me on GitHub

You need to set the endpoint address in your client config map to use the query group @m0smith


@marshall Thanks. I just tried it and no change. One frustrating thing is I cannot find where the Ion deployment is logged to see if I have other problems.


Oh. Using ions?


You need to deploy your ion to the query group instead of to the primary compute group


I did that and the CodeDeploy says it was successful. I can find no other evidence of the deployment though.


How are you invoking the ion?


Via API Gateway through http-direct. Is it possible to access http-direct another way?


And you configured the api gateway to trigger the query group ion?


We are pointing at the query group load balancer. Is there some other way to trigger it?


No that is right


Does the ion do a lot of writing?


We can see in the logs the API gateway is calling the expected query group load balancer


It can do a lot of writing but not usually. We also have some custom aggregator functions


Writes are all forwarded to the primary compute group


What makes you think the QG isnt doing work?


The dashboard for the QG shows no usage while the compute group dashboard shows all the query and transcts


Your connection type is :ion in the client config map?


Hm. Can you file a support ticket and we can look into it tomorrow


:server-type 🚉


sure, thanks


It may help if we could get cloudwatch access, etc


Does the app-name need to match? We have different app-name set in the resource file


Different than?


The app name set on the query group when you launched it needs to match the one you use in the config when you push


The :app-name in the ion deployed to the compute group is different than the :app-name deployed to the QG


As long as you did actually deploy to your qg


The ApplicationName in the Parameters to the QG is not specified. We should be using the SystemName in that case?


in CloudFormation


The app name defaults to the stack name if you dont specify it


ok, I had that wrong


I will give it a try. I have to take off. I'll open a ticket if that doesn't help.


thanks again


I have a chicken and egg style problem with datomic ion lambdas... I'm creating my environment s3 buckets with cloudformation before ions are deployed... I can't refer to the not-yet-existing ion lambdas in the bucket notification config.


same goes with API gw permissions to call the ion lambdas... I wan't to create my infastructure before ci does the deployment


I'm wondering if others have had similar issues and how to solve them

Jakub Holý (HolyJak)09:01:33

Not here but elsewhere we deployed a dummy service under the same name and later overwrote it with the actual application. Not sure whether a similar approach (a dummy lambda with the target name) could work...

Ivar Refsdal09:01:31

Hi. A question about backup. Currently we just backup the backing database using regular MySQL functions/scripts. Is that good enough, or could this lead to trouble in recovery in the event of a disaster? Thanks.


are ion deployment failures logged, and if so which CloudWatch log group can we inspect? i've checked in /aws/lambda/<stack-name>-CreateCodeDeployDeployment and ...EnsureCodeDeployApplication and don't see anything suspicious. CodeDeploy tells me which specific event failed, but i'm hoping for more details.


I look in the datomic-<stack-name> log group and filter for Ion


Made a natural language to datalog lib in CLJC. Experimental. Please read readme before commenting on why strings are a terrible idea for DB queries 😁 ️Curious to hear your thoughts and ideas!


Nifty! It makes perfect sense on mobile, such as your use-case

🙏 4

Anyone have experience using Hodur for a datomic graphql API? from looking at project, I don't particularly like the way it abstracted out datomic's schema, but only examples I can find using lacinia and datomic also use Hodur


for context - i was able to get ions running already via http with pedestal-ions, following their pet service example project. but haven't been able to integrate Lacinia as simply, and hard to know what steps to follow without a bare bones example hence why i'm considering just using hodur, but wondering what experiences ppl have with it


Are you looking for hodur-datomic experiences specifically when combined with graphql? I've never used it with graphql but have used it with datomic and have some opinions.


sure, what are they?


• I'm not a fan of the hodur types, I was constantly looking up what types translated to which Datomic valueTypes. • It made it easier to get basic database schemas started, but felt a lot more constrained than it did without it. I think it would be hard to build something like;X-Amz-Credential=AKIAISTNZFOVBIJMK3TQ%2F20200110%2Fus-east-1%2Fs3%2Faws4_request&amp;X-Amz-Date=20200110T222806Z&amp;X-Amz-Expires=300&amp;X-Amz-SignedHeaders=host&amp;X-Amz-Signature=d202d5b1eccf52fcf95b4da8d3c88d014445278d133a01ced5c684889d96db98 using it, as one example. • Although I loved the graphing capabilities, I couldn't get things to work nicely when I started diverging from the kind of design that would be expected in a table based structure. I tried putting in interfaces and things but it became way more complicated than necessary fast. • I had issues with the naming conventions and how it translated some names - s3 became s-3, and I had to test how the names I wanted translated and change my desired naming to use it • It's great for enums and simple schemas, and I love the concept of it and how it works for some types of schemas and relations. • I currently have about half my schema defined in hodur, and the other half with normal datomic syntax.


this is definitely helpful, thanks


and generate Datomic schema in this shape because I find it more readable


now 99% of my schema is generated


and about 50% of my GQL schema as well


I also generate clojure code using a pattern similar to this.


that generates 8k lines of code in my application now. this generation idea is really powerful. I’m a big fan of it 🙂

metal 20