Skip to content

Instantly share code, notes, and snippets.

View wakeupmh's full-sized avatar
🏴‍☠️

Marcos Henrique wakeupmh

🏴‍☠️
View GitHub Profile
@wakeupmh
wakeupmh / app.ts
Last active July 1, 2024 01:25
creating a sqs fifo with a high throughput
import { Context, SQSEvent } from "aws-lambda";
import 'reflect-metadata';
export async function handler(event: SQSEvent, _?: Context): Promise<void> {
try {
for (const record of event.Records) {
const params = JSON.parse(record.body ?? "{}");
console.log(params);
}
} catch (e: any) {