Best of ServerlessOctober 2024

  1. 1
    Article
    Avatar of devtoDEV·2y

    Back-End Development: Definition, Stats, & Trends To Follow In 2024

    Back-end development now serves as a stand-alone solution, encouraging businesses to migrate applications server-side. Key trends for 2024 include AI and Machine Learning for smarter applications, containerization and orchestration for reliable deployment, Backend-as-a-Service (BaaS) for scalable app development, event-driven architecture for extensible systems, serverless architecture for faster deployment, API-first development for reusable APIs, microservice architecture for resilient applications, cloud-native development for multi-cloud environment flexibility, and serverless apps for cost-efficient cloud operations.

  2. 2
    Video
    Avatar of primeagenThePrimeTime·2y

    Sqlite Is Getting So Good

    The post dives into a new multi-tenant architecture and issues a scalability challenge for a serverless database based on a fork of SQLite. It emphasizes the advantages of deterministic simulation testing (DST) and highlights the importance of not reinventing the wheel unless mission-critical. It also discusses the application of Rust and its borrow checker for improved safety and performance, the implementation of DST for bug detection, and the decision-making process behind choosing Rust over Zig for the rewrite project.

  3. 3
    Article
    Avatar of fermyonFermyon·2y

    Lightweight Kubernetes and Wasm is a Perfect Combo

    Recent advancements have introduced lightweight Kubernetes distributions like Rancher Labs k3s and Canonical's Microk8s. Combining these with WebAssembly-based SpinKube offers high efficiency, especially for lower-powered hardware or virtual machines. SpinKube's serverless design allows apps to start in half a millisecond, making it suitable for high-density deployments, cost-saving on infrequent services, and efficient edge computing.

  4. 4
    Article
    Avatar of firebase-developersFirebase Developers·2y

    Persisting LLM chat history to Firestore

    Learn how to persist chat history for LLM powered applications using Firestore. The post walks through maintaining in-memory chat history with LangChain's RunnableWithMessageHistory and transitioning to persistent storage using Firestore. Users will understand how to enhance their chat applications by saving session history, making conversations more context-aware and meaningful.

  5. 5
    Article
    Avatar of awegoAwesome Go·2y

    Writing an HTTP Router for AWS Lambda Functions From Scratch With Go

    Deploying REST APIs using serverless architecture with AWS Lambda can deliver advantages like pay-per-request pricing and no infrastructure management but also presents challenges such as cold starts and vendor lock-in. To optimize HTTP request routing in Lambda functions, the author implemented a custom router called LambdaMux using a radix tree for efficient matching, competing with existing solutions such as aws-lambda-go-api-proxy and LmdRouter. Benchmarks show LambdaMux offers performance improvements, particularly in high-throughput scenarios. Future enhancements may include adding middleware support and query parameter parsing.

  6. 6
    Article
    Avatar of theburningmonktheburningmonk.com·2y

    How to build a Leaderboard service with Momento: a step-by-step Guide

    Learn to build a scalable leaderboard service using Momento's Sorted Set collections with a step-by-step guide. The guide covers creating API routes for submitting scores, getting user rankings, and listing leaderboard entries, all implemented with AWS Lambda and API Gateway. It also provides tips for securely handling API keys with AWS Systems Manager Parameter Store.

  7. 7
    Article
    Avatar of communityCommunity Picks·2y

    Building a High-Performance API with FastAPI, Pydantic, and Neon Postgres

    Learn to create a high-performance API for managing a tech conference system using FastAPI, Pydantic for data validation, and Neon's serverless Postgres. The guide walks through setting up the project, connecting to Neon Postgres, defining models and schemas, creating API endpoints, running and testing the API, and Dockerizing the application. It also covers performance optimization techniques such as database indexing, pagination, dependency injection, and efficient data handling.

  8. 8
    Article
    Avatar of communityCommunity Picks·2y

    Sidecar Docs

    Sidecar is a package for Laravel that deploys and executes AWS Lambda functions. It supports multiple runtimes like Node.js, Python, Java, .NET, and Ruby, and works with Laravel versions 7-10. Sidecar simplifies the deployment of non-PHP functions within Laravel applications, but it does not manage other services like API Gateway or databases.

  9. 9
    Article
    Avatar of communityCommunity Picks·2y

    IndieWeb Link Sharing

    Sharing content on IndieWeb can be inconvenient compared to social media. To improve this, the author adapted a link sharing technique involving a Javascript bookmarklet, a sharing form, and a serverless function for their Eleventy and Netlify setup. This method facilitates quick post creation and can be used on both desktop and mobile by integrating a PWA share target.

  10. 10
    Article
    Avatar of restateRestate·2y

    Persistent serverless state machines with XState and Restate

    XState is a powerful JavaScript framework for building state machines, popular for modeling frontend state. Restate, a new durable execution engine, allows converting simple imperative code into fault-tolerant distributed systems. By combining XState and Restate, developers can create ‘virtual state machines’ that store state durably and wake up only to process events, making them suitable for backend processes. This approach simplifies business logic modeling, making it possible to handle complex tasks, such as payments, through state machines without persistent resource usage. This integration is deployable across different environments, enhancing code resilience and scalability.