A CDK construct that consists of a serverless backend, frontend and client side code to track website analytics
We use CloudFront running a SPA to reverse proxy to an API Gateway backend. This eliminates CORS which can hugely decrease request latency up to 50%.
This article documents the thought process and steps involved in refactoring a distributed monolith to microservices. We are going to remove API GW, use Amazon Event Bridge and implement BASE consistency in the system to truly decouple our microservices. We also impliment AWS native observability, monitoring and alerting services.
TypeScript does a great job at compile time type safety, but we still need to do runtime checks just like in JavaScript. There are many packages and tools to help with this, we focused on AJV Standalone that outputs JS validation functions at compile time to be used at runtime. Going from TS Types to JSON Schema to JS functions allows us to validate TS Types where the other packages all work with classes and reflection.