The problem that Uptimely Core solves¶
Uptimely Core aims to reduce the specification and development process for massive scale numerical calculations with complex dependencies for industrial needs from weeks to minutes.
Example story¶
The following story is imagined. However, it is inspired and compiled by discussions from developers and business managers across the industry. The example is not exceptional, and those ~60 steps could be easily multiplied in many occassions.
An analyst at a data center operator is asked to add a calculation to monitor cooling-water delivery to a server room.
Let's say the required calculation is simply picking lower value among two measurements in the process telemetry data:
The development process¶
The workflow for data scientist might look something like this:
- Go to ticketing tool
- Find the right ticket
- Check description: "Apply
min(cooling_flow_sensor_1, cooling_flow_sensor_2)for server room x" - Browse documentation wiki if existing analytics framework would allow such function
- Also go through each repository to double check if documentation was up to date
- Result: Documentation was outdated
- Ask in company chat if somebody has deployed anything similar
- Also check the database catalog if there are similar calculations running
- There is a similar calculation running but it is not compatible with this cooling system
- Fire the deployment pipeline. But wait! There is a rivaling deployment running.
- Check for conflicts in the code.
- Conflict. Resolve in code editor.
- Ask in chat if somebody has other stuff coming soon
- Deploy
- Deployment error. An automatically updated code package is not compatible with others.
- Fix and deploy. Wait for an hour to pass all safeguards.
- Deployment passes.
- Wait for Python environment setup and execution.
- Error: There was a syntax error that was captured only in the production environment
- Realize a new version needs to be deployed
- The person responsible of existing repositories is on vacation, due to lack of permission, you need to create a new repo
- You try to find the project template repository
- There is no simple way to parametrize the calculation, so you hard code
min(flow_rate_1, flow_rate_2)to the code - Change and deploy. Wait for an hour to finish.
- Wait another 30 minutes for results due to runtime environment setup from zero and massive data read.
- Finally results are ready. Check results manually.
- Run 25 queries to find out what data was persisted to database
- Results are not visible, not sure why
- Check that we have data for the server room
- Find the server-room ID by a complex SQL query
- Read the wiki about how to add a server room to the data center inventory
- The page was updated 3 years ago, the process does not work
- Try various things and make it work
- You verify from the project manager by email when the results are needed
- Suddenly there is a sprawling email thread of 13 managers, engineers and sales people about the exact definition
- Main stakeholder asks in the middle of thread WHEN IS IT READY
- The definition was multiple KPIs over various time periods
- Go back to code
- A week passes due to unclarity of new specifications
- Works locally
- It is already afternoon and there is nobody to accept code changes
- Next day deploy to cloud
- It kind of works, but there is a dependent calculation that is not in sync
- Fix it
- The executor runs out of memory
- Fortunately you have a massive big data parallel processing cluster as well
- Accommodate the code
- But it runs out of memory because underlying data is not partitioned
- Change to a bigger computes instance
- Finally works in a notebook! Deploy :)
- Hmm, there is no deployment pipeline to handle notebooks
- Just pick the most enormousest virtual server and deploy
- Passes. Executes. Results are there.
- Works, but the results are duplicated.
- Whatever, the results are there
- Update wiki page for the calculation
- Also update the pull request notes
- And once more in the ticket...
- Explain the same also to everybody in the email
- Answer follow-up questions in the email one more time to realize nobody reads any of the documentation
- This was only devevelopment environment. Repeat the steps for to QA and production.
Why the problem exists?¶
It is not the lack of technical tools or data science expertise. There are sophisticated components for to run massive workflows in data platform, dataframes, machine learning libraries etc tooling. The real problem is that they are focused on technogolgy and execution instead of managing the big picture.
Compare it to building a house. You have hammer, nails and a pile of wood. But no guidelines to build. Somebody thinks the house should be a hole in the ground, another insist for tree hut. Nobody knows how the house even should look like, but everybody has opinion.
How do you scale to city level from this starting point?
Missing governance layer for data science¶
Modern data platforms such as Snowflake, Databricks and BigQuery allow data analytics at any scale and complexity.
While it is amazing techical achievement, it also leads to a governance chaos. The intention of those platforms is mainly to provide technical execution power and engineering tools.
Especially with AI coding assistant, creating a single calculation is not a bottleneck anymore. Today's issue is managing all of them.
The data science ecosysytem is missing the layer to manage and structure the analytical calculation on those platforms and frameworks in an easy way. Or even making them invisible.
What if somebody could have just gone to a mobile app, write the minimal analytical expression to an input box and click "Deploy"?
The specification process¶
Before the development process has started, there has been dozens of meetings to define project requirements, what needs to be achieved and how is it implemented. Who does what and when.
And the only question that anybody is really interested about: When is it ready?
The developer knows there is no realistic answer due to the described process. Every request is almost like starting from zero. But to please everyone they give an estimation.
Uptimely Core provides a highly structured specification for analytical calculations and a process to bypass many of the intermediate steps.
From basics to state of the art¶
When are experts supposed to create real science having such workflows?
Typically individual mathematicians and data scientist are more than capable of building the algorithms and models when they have sufficient resources to do so. The problem comes from organizational complexity:
- Changing priorities
- Who makes decisions
- Where is related code
- Where to dump this code
- Where is the documentation
- Who knows about the dependencies
- How to get quick feedback from stakeholders
- How to validate that the results are correct
- What refactoring is needed to ship the new solution
Solving the above process would harness smart people to focus on real data science where they can really shine. It removes a massive communication and information overhead between multiple developers and stakeholders.
Uptimely Core was born as a result of frustration to missing tooling to logically organize analytical pipelines to make data science applications easy to structure, deploy and understand.
Starting from basics¶
Also Uptimely has went from state of the art to basics in order to build this framework.
The original ambition was to build reusable modular components for advanced industrial use cases such as production optimization with quantum computing and generic industrial multi-sensor anomaly detection.
Before that, it was important to build robust and scalable foundations.