Introduction
Our journey is about Systems Architecture and Development for the faint-hearted where we apply the ‘KISS’ principle, a minimalist and serverless approach with some basic coding too as a bonus. Try this project out to see if you like programming, hence a Primer to get us started. Jump right in and never turn back.
But why data first? So we can produce and track metrics to see how our business is doing. We also include the data piece because we need something to program and track right out of the gate, more than just “Hello, World!” found in numerous other tutorials.
So why do we do this using live data? We want to mimic a real-world business process on how orders come into our business system and then how this data is consumed by data analytics.
But why not just ask AI to build our system? Because AI has trouble with human judgment, strategic decisions, setting priorities and risk assessment. Imagine a group of stakeholders with ambiguous requirements, all with differing opinions, where some cannot even articulate their business needs properly. We need human intervention to listen carefully to gather these needs to piece together our working system. Also we don’t exactly want to give out our passwords to AI as this is a huge security risk. AI can’t read our minds about what tools we think are most efficient to use. I like to say that I am the Architect and AI is most certainly my junior dev and partner. So AI does have a place in our stack these days. Finally we need humans to set the boundaries for AI, the guardrails so to speak.
This guide, along with our very specific use case, will push us in the right direction for preparedness in these tumultuous waters. Please feel free to copy and extend the entire project. Most IMPORTANT, learn from it, be creative and don’t ever turn back.
Let’s be Systems Architects now and Data Architects too, not just Coders. We really want to know all the puzzle pieces of an entire system so we don’t need to rely on expensive help, particularly interdepartmental assistance that can bog us down and become pricey.
What we will be programming - our project requirements
Let’s first envision how an orders database operates in real life. With this in mind we have customer orders coming in intermittently to our fictitious company and getting posted to a cloud based data table. Then we consume raw data with our home-built reporting tools and we build our own software tools from this vision. We use this software internally for decision making.
Click here to see how many orders I have
My company now has $5+ million in orders, 9 months in, and you can watch it grow in real time each hour.
Bottom line, we are building an end-to-end information system, a simulated, live orders database as a scheduled task (one order each hour) using AWS EventBridge and Lambda. From there our serverless data pipeline will store orders in an S3 JSON file. Then we build charts and dashboards that our marketing team will consume.
A minimalist approach
Our Tech Stack
- Plain Vanilla JavaScript frontend with JSON & NoSQL
- AWS ecosystem (only 4 main services), our cloud serverless networking layer, logic layer and storage layer
- Coding layer, Lambda function with a Python template
- AI, Google Gemini for our assistant in building charts and dashboards
What is not in scope on this project
Node.js / npm, React, Github, external libraries, complicated JS frameworks,
no over-engineering here purposely.
What we will learn
Data arrays, array methods, basic js, AWS basics, serverless cloud (fetch data from S3 bucket),
How to build an end-to-end system with minimal AWS services,
A very small, sensible amount of timeless Python in our coding templates
Note, this is an extensible, data-centric application which can be plugged into any larger ecosystem because of its generic format. It is a no frills, simple approach aimed at only priming the reader to want more. We can ask ourselves if programming is a viable career path and get our answer while completing this project.