# Sudden latency increases

**URL:** <https://forum.serverless.com/t/sudden-latency-increases/9890>\
**Category:** Serverless Framework\
**Tags:** aws, lambda\
**Created:** [November 19, 2019, 3:07am UTC](https://forum.serverless.com/t/sudden-latency-increases/9890 "2019-11-19T03:07:54Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![daviseford](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.serverless.com/daviseford/32/3781_2.png) [@daviseford](https://forum.serverless.com/u/daviseford)\
**Post date:** [November 19, 2019, 3:07am UTC](https://forum.serverless.com/t/sudden-latency-increases/9890/1 "2019-11-19T03:07:54Z")

</div>

Hey guys, I run a very simple CRUD API using the serverless framework. I am using Node v10 and serverless v1.57.0

My CRUD app is not complex at all, it accesses a DynamoDB table and returns results. It usually responds in about 15-20ms with no problem (2kb payload).

Once in a while, however, I will run `sls deploy` and suddenly I get 6+ second response times from any endpoint that was deployed. If I deploy a certain function, that function is now slow. I can’t seem to undo this - if I run rollback, the 6 second latency remains. I want to stress that there are no code changes or database changes. This seems to be a serverless problem.

Has anyone experienced anything similar?

---

<div class="post-metadata">

**Author:** ![daviseford](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.serverless.com/daviseford/32/3781_2.png) [@daviseford](https://forum.serverless.com/u/daviseford)\
**Post date:** [November 19, 2019, 2:34pm UTC](https://forum.serverless.com/t/sudden-latency-increases/9890/2 "2019-11-19T14:34:48Z")

</div>

Looks like a similar problem occurred here: [After upgrade to v1.57.0, new deployments of existing services run x2000 times slower](http://forum.serverless.com/t/after-upgrade-to-v1-57-0-new-deployments-of-existing-services-run-x2000-times-slower/9814)

---

<div class="post-metadata">

**Author:** ![daviseford](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.serverless.com/daviseford/32/3781_2.png) [@daviseford](https://forum.serverless.com/u/daviseford)\
**Post date:** [November 19, 2019, 2:48pm UTC](https://forum.serverless.com/t/sudden-latency-increases/9890/3 "2019-11-19T14:48:45Z")

</div>

It would appear that removing the `app` line from your serverless.yml file will get rid of this latency!

---

<div class="post-metadata">

**Author:** ![garethmcc](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.serverless.com/garethmcc/32/2276_2.png) [@garethmcc](https://forum.serverless.com/u/garethmcc)\
**Post date:** [November 20, 2019, 5:38am UTC](https://forum.serverless.com/t/sudden-latency-increases/9890/4 "2019-11-20T05:38:36Z")

</div>

Hey there. As I responded on the other thread, would you be able to share your serverless.yml? If you prefer, you can create a private gist and send it to me personally if you don’t want to do it publicly.
