Whats the maximum number of virtual processor cores available in aws lambda
Memory: 3008 MB
namespace Newtonsoft.Json.Converters | |
open Microsoft.FSharp.Reflection | |
open Newtonsoft.Json | |
open System | |
type IdiomaticDuConverter() = | |
inherit JsonConverter() | |
[<Literal>] |
// Single case union | |
[<Struct>] type MHPI = MHPI of double | |
// An entity that contains SCU | |
type Entity = { | |
Foo: string | |
Bar: MHPI | |
} | |
// JSON.NET Converter |
namespace Infrastructure | |
open System.Text.Encodings.Web | |
open System.Text.Json | |
open System.Text.Json.Serialization | |
[<RequireQualifiedAccess>] | |
module JsonSerializer = | |
let private setupOptions (options: JsonSerializerOptions) = | |
options.PropertyNamingPolicy <- JsonNamingPolicy.CamelCase |
root = false | |
[**/**.{yml,ts,tsx,js,json,jsx,html}] | |
indent_style = space | |
indent_size = 2 | |
insert_final_newline = true |
# enable named panes | |
set -g pane-border-format "#{pane_index} #{pane_title}" | |
set -g pane-border-status bottom |
root = false | |
[**/**.yml] | |
indent_style = space | |
indent_size = 2 | |
insert_final_newline = true | |
[**/**.ts] | |
indent_style = space | |
indent_size = 2 |
name: .NET Core Build with Tests | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
jobs: | |
build: |
Given you have a stack with one or more Lambda functions (e.g. as part of a Step Functions state machine), it can be pretty useful to stub long running parts with a known response.
This makes use of cdk Aspects, which allows modifying all or a filtered subsset of resources for a given scope (Stack, Construct).
In addition this leverages raw overrides to remove the original code of the Lambda function.
Please note, that the stub has to be in Python or NodeJS, since inlining code is only supported by those runtimes.
// ========= Event Sourcing in a nutshell | |
(* | |
FriendlyName: string | |
Aggregate friendly name. | |
Initial: 'State | |
Initial (empty) state we will start with. | |
Decide: 'Command -> 'State -> 'Event list |