datacite / akita

DataCite Commons
https://commons.datacite.org
MIT License
6 stars 3 forks source link

Reduce Memory for Serverless Function #323

Closed jrhoads closed 8 months ago

jrhoads commented 8 months ago

Purpose

Serverless functions are called every time a doi page is requested. This PR reduces the ammount of memory used by the serverless function by 50% This should theoretically increase the nubmer of requests per month we can make at the included rate without reducing the performance of the serverless function.

Approach

Specify the ammount of memory allocated the doi view page.

Learning

https://sivarampg.medium.com/simple-effective-way-to-get-upto-8x-more-serverless-function-invocations-gb-hrs-on-vercels-6512031ac7eb

https://vercel.com/docs/functions/serverless-functions#bundling-serverless-functions

Types of changes

Reviewer, please remember our guidelines:

jrhoads commented 8 months ago

Current dependencies on/for this PR:

This stack of pull requests is managed by Graphite.

cypress[bot] commented 8 months ago

Passing run #1015 ↗︎

0 64 0 0 Flakiness 0

Details:

Merge efc0a7634edb425963a1696151c5deb9d15810f3 into e11c6ec8ac0d070ef7d262891f19...
Project: akita Commit: 6fe63eca5e ℹ️
Status: Passed Duration: 02:10 💡
Started: Jan 25, 2024 8:14 PM Ended: Jan 25, 2024 8:16 PM

Review all test suite changes for PR #323 ↗︎

jrhoads commented 8 months ago

Merge activity