For MealSpotter, we use Google Analytics Events to help us better understand how well Deals are performing, and bring that insight to our restaurant partners. Ensuring that our analytics data are clean helps us to work with our partners to bring even better deals to our users. This post will go into how to define an Events schema using Typescript, using a simplified example of the method we use at MealSpotter.
Rust support on AWS Lambda was recently released, which seems like as good an opportunity as any to share some code and the solutions to challenges I encountered along the way ☺. I’ve decided to create a little diceware service, and the lambda-runtime crate provides a great API to make this a breeze. Setting up the library We’re going to generate a basic crate: $ cargo new dicers –lib && cd dicers Created library
dicersproject You should see a structure similar to this: