# Datomic client in AWS Lambda

**URL:** https://forum.datomic.com/t/datomic-client-in-aws-lambda/384
**Category:** Datomic Cloud
**Created:** [March 30, 2018, 5:03pm UTC](https://forum.datomic.com/t/datomic-client-in-aws-lambda/384 "2018-03-30T17:03:16Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![10ky](https://avatars.discourse-cdn.com/v4/letter/1/dec6dc/32.png) [@10ky](https://forum.datomic.com/u/10ky)
#### Post date: [March 30, 2018, 5:03pm UTC](https://forum.datomic.com/t/datomic-client-in-aws-lambda/384/1 "2018-03-30T17:03:16Z")

</div>

Is it a bad idea to run Datomic client in AWS Lambda? I understand this is a problem for Datomic peer because of the large memory footprint.

I would appreciate if someone would hare some experience on working with Datomic client API within AWS Lambda.

---

<div class="post-metadata">

### Author: ![paul](https://avatars.discourse-cdn.com/v4/letter/p/bbe5ce/32.png) [@paul](https://forum.datomic.com/u/paul)
#### Post date: [April 24, 2018, 9:36am UTC](https://forum.datomic.com/t/datomic-client-in-aws-lambda/384/2 "2018-04-24T09:36:23Z")

</div>

Hi, have you tried using the Datomic Client in AWS Lambda yet?

I have been experimenting with it for a while now and the start up time is proving to be a significant hurdle. I’m using Clojure which will also add to the start up time, but from a completely cold start you are looking at around 30 seconds to get a response.

I’m looking at ways to mitigate this, by starting the service with a nice loader and then pinging it at regular intervals to keep it warm. However, AWS will from time to time start a fresh instance, even if there is a warm one, quite often when there is a lot of traffic, this new instance will then take around 30 seconds to return its response, leaving whatever part of the page requested the response hanging.

I really want to make AWS Lambda and Datomic Client work, but unless I can resolve these start up times, or at least ensure the user only has to deal with it at the most once per session, I really cannot see it becoming a viable solution.

I would also be very keen to hear from anyone who has got these two working together satisfactorily.

Thanks, Paul

---

<div class="post-metadata">

### Author: ![10ky](https://avatars.discourse-cdn.com/v4/letter/1/dec6dc/32.png) [@10ky](https://forum.datomic.com/u/10ky)
#### Post date: [April 24, 2018, 9:08pm UTC](https://forum.datomic.com/t/datomic-client-in-aws-lambda/384/3 "2018-04-24T21:08:04Z")

</div>

Thanks for sharing your experience. I suspected start up time would be a problem but have not get around to try it yet. On top of my head, I can’t think of a solution either.
