- Type of work
- Reporting platform build and operations
- Whose work
- Our founder’s earlier engineering work
- Status
- Built and run in production
- Stack
- Python, Streamlit, Amazon Redshift, Parquet, Docker, Google SSO, Pytest, Slack
In brief
- Problem. Finance, operations and engineering needed regular reports from the same warehouse, with the same definitions for everyone and control over who could open what.
- Work. Our founder built and ran a reporting platform in Python and Streamlit. Reports read scheduled Parquet snapshots extracted from Amazon Redshift, behind Google sign-in with role and report permissions.
- Check. A new snapshot is published in one step only when it is complete. Refreshes run under a worker limit and database timeouts, and regression tests cover the report definitions.
What did the platform need to do?
Three groups read reports from one warehouse. They needed shared definitions, so a figure meant the same thing in every report. They needed access controlled per report, because some reports held personal and financial detail. And they needed to see how fresh the data was before acting on it.
What did our founder build?
- Scheduled Parquet snapshots. Report definitions are written in Redshift SQL and extracted on a schedule to Parquet files. Reports read the snapshot, so every reader sees the same figures until the next refresh.
- Overlap windows. Each scheduled extract reads a window that overlaps the previous one, so rows that arrive late are still picked up.
- Atomic publication. A new snapshot replaces the old one in a single step after it has been written in full. Nobody opens a half-loaded report.
- Sign-in and permissions. Google single sign-on, roles, permissions per report and an audit log of access. Identities are redacted in restricted reports.
- Definitions and freshness on screen. Metadata shows how a report is defined and when its data last refreshed.
- Scheduled delivery. Reports are sent to Slack and as PDF files on a schedule, with a generated summary.
He also moved earlier Tableau reports onto the platform, rebuilding them in Streamlit.
How were refreshes kept reliable?
A reporting platform is judged on the morning something goes wrong. Each control below limits one kind of failure.
| What goes wrong | What contains it |
|---|---|
| A query hangs | A database timeout ends it, and the previous snapshot stays published |
| Many extracts start at once | A cap on concurrent workers queues them |
| An extract uses too much memory | Container resource limits stop it without taking the application down |
| A refresh fails halfway | Atomic publication keeps the last complete snapshot in place |
| A change breaks a report | Regression tests fail before the change is released |
When does this approach fit, and when does a BI tool fit better?
An application like this suits a team that wants report logic in version-controlled code, custom behavior such as scheduled delivery and redaction, and fixed reports that many people read. Power BI or Tableau suit teams whose analysts build and change their own reports. Both can read the same warehouse views, and we work with either. Business intelligence and dashboards covers the options.
The same platform later became the base for read-only tools that let AI assistants answer from these reports.
What would this look like for your team?
Pick three reports people open every week. We write their definitions as SQL, set a refresh schedule, publish snapshots atomically and put sign-in in front. The first milestone is those three reports, each showing its definition and its last refresh time.
Frequently asked questions
Why use Parquet snapshots instead of live queries?
A snapshot makes a report fast and predictable. Every reader sees the same figures until the next scheduled refresh, and opening a report puts no load on the warehouse. Live queries suit data that must be current to the minute. Many platforms use both and show the refresh time on screen.
What is atomic publication?
The new data is prepared in full somewhere readers cannot see, then swapped in with a single step. If the refresh fails, nothing is swapped and readers keep the last complete version. It prevents the half-loaded report that shows a low total first thing in the morning.
Can a platform like this sit beside Power BI or Tableau?
Yes. The warehouse views that feed the snapshots can also feed Power BI or Tableau. A common split is fixed operational reports in the application and analyst-built reports in the BI tool, both reading the same definitions.
Start with three reports
Tell us which reports people open every week, where the data lives and who should see each one. Describe the reporting platform you need.
This example describes engineering work our founder, Meet Vaghasia, carried out in an earlier role. The organization is not named and project figures are left out. On a call we can walk through the approach in more detail.