From 5f13c26a23f41ca1a0d5d5058d4baf8af82d8aa4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20Kj=C3=A6r?= Date: Sat, 28 Oct 2023 12:00:51 +0200 Subject: [PATCH] Update draft and fix folder path --- drafts/2023-10-17-the-stack-part-4.md | 75 +++++++++++++++++++++++++++ posts/2023-10-16-the-stack-part-3.md | 2 +- 2 files changed, 76 insertions(+), 1 deletion(-) diff --git a/drafts/2023-10-17-the-stack-part-4.md b/drafts/2023-10-17-the-stack-part-4.md index 18b5a84..886ce05 100644 --- a/drafts/2023-10-17-the-stack-part-4.md +++ b/drafts/2023-10-17-the-stack-part-4.md @@ -153,6 +153,81 @@ We will start from our building blocks, which will be our subgraphs, and then bu The Router needs an HTTP endpoint, we will use [AWS Lambda Function URLs](https://aws.amazon.com/blogs/aws/announcing-aws-lambda-function-urls-built-in-https-endpoints-for-single-function-microservices/). +Price per 1ms (eu-west-1): +- 128MB = $0.0000000017 +- 512MB = $0.0000000067 +- 1024MB = $0.0000000133 +- 1536MB = $0.0000000200 +- 2048MB = $0.0000000267 + +Cold-start: +- ms-gql-reviews + - Memory: 128MB + - Billed Duration: 67ms + - Total time: 257ms + - Init: + - Invocation: +- ms-gql-users + - Memory: 128MB + - Billed Duration: 57ms + - Total time: 210ms + - Init: + - Invocation: +- ms-gql-products + - Memory: 128MB + - Billed Duration: 53ms + - Total time: 164ms + - Init: + - Invocation: + +Warm-start: +- ms-gql-reviews + - Memory: 128MB + - Billed Duration: 2ms + - Total time: 7ms +- ms-gql-users + - Memory: 128MB + - Billed Duration: 1ms + - Total time: 6ms +- ms-gql-products + - Memory: 128MB + - Billed Duration: 2ms + - Total time: 6ms + + +Cold-start: +- ms-gql-reviews + - Memory: 1024MB + - Billed Duration: 45ms + - Total time: 226ms + - Init: 39ms + - Invocation: 1ms +- ms-gql-users + - Memory: 1024MB + - Billed Duration: 44ms + - Total time: 201ms + - Init: 38ms + - Invocation: 4ms +- ms-gql-products + - Memory: 1024MB + - Billed Duration: 43ms + - Total time: 202ms + - Init: 39ms + - Invocation: 1ms + +Warm-start: +- ms-gql-reviews + - Memory: 1024MB + - Billed Duration: 2ms + - Total time: 6ms +- ms-gql-users + - Memory: 1024MB + - Billed Duration: 2ms + - Total time: 8ms +- ms-gql-products + - Memory: 1024MB + - Billed Duration: 2ms + - Total time: 6ms ## DynamoDB: A database for our services diff --git a/posts/2023-10-16-the-stack-part-3.md b/posts/2023-10-16-the-stack-part-3.md index 9812a4c..d46386e 100644 --- a/posts/2023-10-16-the-stack-part-3.md +++ b/posts/2023-10-16-the-stack-part-3.md @@ -123,7 +123,7 @@ Let's start by adding the dependency: $ bun add next-intl ``` -We'll also create a folder that will contain our localization files, which we'll call `locales/` in the root of the `ui-app/` project: +We'll also create a folder that will contain our localization files, which we'll call `messages/` in the root of the `ui-app/` project: ```bash $ mkdir messages