Urgent.News

What's breaking now, across thousands of outlets.

Tech

From Custom Resources to Constructs: Designing a CDK Library for Serverless UDP

We recently shipped @proxylity/cdk-udp-gateway , an AWS CDK construct library for Proxylity UDP Gateway . This article presents how it was designed and built — what the library does, and the method we used to get it right: the layering strategy, the two design problems that shaped the API, the verification discipline that caught issues before they shipped, and the unglamorous engineering…

Amazon Web Services (AWS) Cloud Development Kit (CDK) enables developers to define cloud infrastructure using programming languages such as TypeScript, Python, Java, C#, Go, etc. Instead of using declarative CloudFormation JSON or YAML, CDK constructs are reusable, typed building blocks that are composed into stacks. These constructs synthesize CloudFormation templates, making it easier to build and share higher-level abstractions.

CDK constructs are conventionally described at three levels: L1 represents a 1:1 mechanical mirror of the underlying CloudFormation resource with no opinions or defaults beyond what the resource itself applies; L2 is an ergonomic, opinionated wrapper with sensible defaults, typed references, enums instead of magic strings, and automatically-derived IAM; L3 comprises full solution patterns that wire several resources together for complete use cases.

Proxylity UDP Gateway brings UDP into the serverless world, providing a managed listener endpoint for UDP, WireGuard, or DTLS, and delivering inbound datagrams to AWS destinations (Lambda, SQS, Kinesis, Firehose, S3, Step Functions, and more) as batched events. Previously, developers provisioned a listener through CloudFormation custom resources, which worked well but involved careful adherence to syntax and boilerplate.

Over two years, the service matured and stabilized, making it a good target for building a dependable abstraction on top of it. The stable contract served as the precondition for improving developer experience by letting people express a UDP service in a few lines of typed code rather than a hundred lines of JSON.

The design and building of @proxylity/cdk-udp-gateway, an AWS CDK construct library for Proxylity UDP Gateway, involved two main principles: building a faithful L1 layer first and keeping it as a distinct, permanent layer underneath L2, and verifying against reality by treating the deployed service's actual behavior as the single source of authority.

The library underwent a golden synth-diff, testing the abstraction against known-good example templates, and reviewing blocks on unverified claims. When the opinions of L2 didn't fit a specific case, developers could drop to L1 without leaving the library. This approach ensured both ease of use and transparency in the library.

Written by urgent.news from Dev.to's reporting — not their text. Machine-written — may contain errors; check the original before relying on it.

Read the original at dev.to →

More in Tech

Hanmi Semiconductor Launches Hanmi USA in Silicon Valley

At the Hanmi USA office located in San Jose, California, major executives and employees including Hanmi Semiconductor Chairman Kwak Dong-shin gathered on Oct.

  • Hanmi Semiconductor launched Hanmi USA in Silicon Valley on October 16.
  • CEO Kwak Dong-shin attended opening ceremony with executives.
  • Equipment range includes Thermal Compression bonders and Micro Saw.

LS Electric Wins U.S. Data Center Supply Deal

LS Electric said on Oct. 19 that it signed a contract to supply power distribution solutions for data centers in North America.

  • LS Electric secured a 170 million USD data center supply contract in North America.
  • The deal spans 2027 to 2028 and includes 38kV-class high-voltage switchgear.
  • LS Electric plans to expand offerings with customized high-end power equipment for data centers.

How to Convert HEIC to WebP for Faster Websites (Free, No Upload)

How to Convert HEIC to WebP for Faster Websites (Free, No Upload) Disclosure: I'm the developer of FileOnTap, the free converter mentioned below.

  • HEIC files are incompatible with most browsers, causing broken images.
  • WebP files are 25-34% smaller than JPG files at the same visual quality.
  • Conversion can be done directly in browser without uploading files.

More from Monday 19 October →