
Yan Cui
I help clients go faster for less using serverless technologies.
This article is brought to you by
Aurora Serverless can’t scale to zero, that’s bad news for your dev environments! Don’t worry, Neon’s serverless Postgres is here to save the day with instant scaling, predictable performance, and of course, scaling to zero :-D
You can specify a function which can take in a numeric value with a generic unit of measure easily enough:
Similarly, you can also specify a discriminated union whose clauses can be of a numeric value with a generic unit of measure, like this:
type MyDU<[<Measure>] 't> = | |
| A of int<'t> | |
| B of float<'t> | |
[<Measure>] | |
type second | |
[<Measure>] | |
type minute | |
let a1 = A(5<second>) | |
let a2 = A(10<minute>) | |
let b1 = B(10.0<second>) | |
let b2 = B(0.16<minute>) |
Whenever you’re ready, here are 3 ways I can help you:
- Production-Ready Serverless: Join 20+ AWS Heroes & Community Builders and 1000+ other students in levelling up your serverless game. This is your one-stop shop for quickly levelling up your serverless skills.
- I help clients launch product ideas, improve their development processes and upskill their teams. If you’d like to work together, then let’s get in touch.
- Join my community on Discord, ask questions, and join the discussion on all things AWS and Serverless.