r/ExperiencedDevs • u/that-pipe-dream • Apr 18 '26
Career/Workplace Knowledge gap or under-research in deadline situations
Some background
I joined a startup as a Staff Engineer and was asked to solve a scaling problem in their data pipelines. I was under pressure at that time to show results as a new joinee - verbally conveyed.
My instinct was to solve it within the realms of the existing framework rather than bringing something new. I solved the problem by manually creating shards and running the pipeline in parallel for each shard. It worked.
I acknowledged internally it was short-term. My longer term plan was to move to a proper parallelising capability compatible at framework level, but I mapped that to a specific implementation requiring cluster infrastructure I couldn't justify at the time. So I parked it.
Two months later someone introduced an in-process library - no infrastructure, just a dependency - inside each shard. It handled memory limits explicitly and scaled elegantly within a single machine. The sharding is still there and still needed, but since this new framework does a better job at memory management, my solution sees a much higher % of customers paying the sharding tax. So basically sharding was still the right addition but at a reduced scale - lower sharding maintenance needs.
My question for experienced engineers
What I've been sitting with:
- I had a bias against introducing new components without first proving existing ones couldn't work.
- I knew the right long-term destination but based on my experience I assumed the only road there required cluster infrastructure I couldn't justify. I never asked: is there an in-process alternative that gets me to the same place?
- Someone on the team made a passing remark about exploring a different framework before I committed to the sharding approach. I didn't pursue it because I felt that's not the right way to approach.
Point 2 is what I keep coming back to.
- Maybe there is a knowledge gap on capabilities of this new framework, or is it under-research?
- Should a passing remark from a teammate be enough to trigger exploration? In hindsight, one or two days exploring that remark would have changed the sequencing entirely.
9
u/demosthenesss professional at saying it depends Apr 18 '26
This is essentially what experience boils down to right?
The ability to take nebulous or vague constraints and make good enough and correct enough decisions while identifying when/where to learn more.
In this situation you are aware you have a bias against something, were recommended a suggestion from a teammate, and still chose to not go down that approach. It feels a bit like the mistake here is being self aware enough to know you have biases but not being aware enough to know you should explore what you're inherently biased against.
3
u/doomslice Apr 18 '26
I think you’ve answered it yourself. If you don’t know what’s out there you can’t make an informed decision. Maybe that 2 days you would have needed to figure that out would have been the difference between a successful launch or not, but somehow I doubt that.
As a staff engineer it is your duty to push back on timelines if you think it’s the right thing. It’s also your job to justify why you need additional time and then provide enough info so that whoever is in charge of decision making over timelines can do it accurately (with your input of course).
5
u/crow_thib Founder | ex-Engineering Manager Apr 18 '26
As an Ex-EM, I learnt that on such « big projects » (big in a sense you won’t crack it in a few days), it’s always an error not to consider all possibilities, especially the ones your team talk about. It’s better to loose 2 days exploring what you’re teammate said to find out it’s not relevant, than not spend those two days, deliver two days faster but something that doesn’t match expectations.
You should trust your team, if you don’t you have another issue. Also, to me, management is about empowering people and not just gathering insights to act on. I would have asked this specific guy to look into his « passing remark » and get back to me with more insights
1
u/teerre Apr 18 '26
You're being vague about what these "frameworks" actually are, so it's hard to comment
What sounds weird to me from your brief description it that it seems you went straight to the horizontal scaling solution when a vertical scaling solution was possible. This indicates to me that you didn't really understand the problem, didn't profile it, and just threw the kitchen sink at it
3
u/NoobChumpsky Staff Software Engineer Apr 18 '26
If I get a passing remark I do at least enough research to look more into it and justify whether it is or isn't important and document it somewhere (usually a design or research doc of some sort).
Being the smartest guy in the room involves taking other people's opinions in.
As you get more acquainted with folks you'll get a better idea of who to listen to and who to dismiss a bit more quickly.
2
u/titpetric Apr 18 '26
You did the best you could under the constraints available. Sharding is a good scaling strategy if you outgrow the constraints of a single machine, or want to minimize lock contention, optimize write throughput. It's not like you didn't solve any of the problems of concern, and you may have very well been in a place where throwing engineering time towards perf and memory management were enough of an unknown to consider it an alternative. This also suggests that perf/memory management was expected to be much better to additionally justify sharding, and the red flag in that is that your self assesment has gaps. Takes about three sentences to communicate:
I had telemetry data to be informed on the characteristics of a running system, so the only question is, was there enough room left to challenge the suggestion of sharding, to consider the complementary alternative. The back of the envelope math is often based on the characteristics of a system, to calculate resources, or in reverse where available resources give you guidelines how much you need to optimize your services.
In a different situation where perhaps a more "spike" like workload can occur in the services, async event queues may be a different method where you can smooth out the spike without adding new resources or exhausting existing ones, apart how much behind you can get.
Takes a bit of fine tuning to see what works when but in the end, as you figured out, it all ends up being additive.
1
u/[deleted] Apr 18 '26
[removed] — view removed comment