jzon
rescript-and-python-error-parsing-aws-lambda
Our great sponsors
jzon | rescript-and-python-error-parsing-aws-lambda | |
---|---|---|
2 | 1 | |
73 | 0 | |
- | - | |
0.0 | 1.8 | |
2 months ago | almost 2 years ago | |
ReScript | ReScript | |
GNU General Public License v3.0 or later | - |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
jzon
-
Parsing Lambda Error Logs in ReScript & Python
We need the Promise library as it is the best way to use Promises in ReScript. We utilize the Jzon library for deterministically parsing our JSON into sound ReScript types without using the super verbose Js.Json classify syntax. Finally, we have an Environment module to help our Lambda know if it’s running in a QA, Stage, or Production environment.
-
ReScript JSON Typed Strongly
To build a solid JSON codec layer I use Jzon library (disclosure: I’m the author of Jzon). Here are codecs which do the job for our ingredient list:
rescript-and-python-error-parsing-aws-lambda
-
Parsing Lambda Error Logs in ReScript & Python
That coginitive dissonance is why I wrote this article. I love how both laguages can shine in what they do best doing the same task, and it’s fascinating to compare them, and how you’d approach doing the same thing in each. For reference, all code is up on my Github.
What are some alternatives?
rescript-apollo-client - ReScript bindings for the Apollo Client ecosystem
aws-cdk - The AWS Cloud Development Kit is a framework for defining cloud infrastructure in code
CPython - The Python programming language
aws-cloudformation-coverage-roadmap - The AWS CloudFormation Public Coverage Roadmap
ajv - The fastest JSON schema Validator. Supports JSON Schema draft-04/06/07/2019-09/2020-12 and JSON Type Definition (RFC8927)
TypeScript - TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
ocaml - The core OCaml system: compilers, runtime system, base libraries
aws-lambda-java-libs - Official mirror for interface definitions and helper classes for Java code running on the AWS Lambda platform.
aws-appsync-community - The AWS AppSync community
jest - Delightful JavaScript Testing.
F# - Please file issues or pull requests here: https://github.com/dotnet/fsharp