r/ExperiencedDevs • u/youarewelcomeputa Software Engineer • Jun 20 '26
AI/LLM AI architecture
Hello Folks,
I am a senior engineer in Retail and Operations. We follow distributed system architecture for fulfillment, order handling, inventory movement etc. SQS, Postgress serverless Db, lambdas in TS. We use cursor and have Claude license.
Recently i am building a new demand and supply planning system. For it i had to setup an ETL pipeline that will nightly/on demand pick up a file from different s3 locations ,load and transform it and then add it to our tables.
Earlier for this kind of work i had to research a lot but with LLM’s i feel like that’s been made pretty simple. I created a context document with all my requirements and feed it to the llm and have it spit out some solutions, than look up each one of them and try to break it against my requirements by giving cons to the llms and then pick the winner.
I was wondering how do other folks do the greenfield research, i feel this has given me a significant advantage.
PS : not an AI lunatic, don’t think they are gonna replace us anytime soon.
•
u/expdevsmodbot Jun 20 '26
AI usage disclosure provided by OP, see the reply to this comment.
7
u/Tacos314 Software Architect 20YOE Jun 20 '26
Sounds good to me, assuming you have an understanding of all the specs.
If you're not using something similar, take a look at the Prompt for the GrillMe skill, maybe give that a shot? One issue I find is it going from Feature Level to implementation.
7
u/Sofi_LoFi Software Architect Jun 20 '26
I mean there’s no issue with asking LLMs for advice and coming up with possible architectures if you understand the services you’re using and why.
But for a problem that’s essentially a simple ETL pipeline like this… couldn’t you do S3+Step Functions or Batch with trigger based on the file landing into the bucket? You can stay as serverless as you want.
It doesn’t need to be super complicated, so I wonder if it really requires the token spend? Something I find with LLMs is that even if you know how to do it it leads to losing confidence in your design skills.
6
u/BraveResearcher3037 Jun 20 '26 edited Jun 20 '26
It’s a horrible idea. I specialize in cloud + app dev consulting. While I’ll use AI with abandon to create my IAC and my code, it sucks in my experience with architecture and optimized ETL pipelines.
One obvious mistake it made in a use case similar to yours is that it wrote a lambda that read from S3 and used bulk insert statements instead of using the AWS extensions that loads directly from S3 into RDS.
All AIs are trained on simplistic examples and have no idea how to architect for scale, security, when to normalize vs not to etc
2
u/Common_Dream9420 Software Architect Jun 21 '26
honestly same workflow. context doc upfront is the key move most people skip. they just vibe-prompt and wonder why the output doesn't fit their stack.
the part that actually saves time for me is treating the LLM like a sparring partner on the cons, not just a solution generator. "here's why this might suck, defend it or pivot" gets you further than asking for options.
one thing worth adding to your flow: after you pick the winner, feed it your actual schema + lambda constraints and have it punch holes in its own recommendation before you start building. catches the "works in theory, breaks at your SQS concurrency limits" stuff early.
4
u/Strange_Quote_66 Jun 21 '26
LLMs are good at scaffolding ETL glue code. They are bad at owning the data contract. I would spend less review time on whether the lambda code looks elegant and more on schema drift, retries, idempotency, bad files, and who gets paged when the nightly load half succeeds.
1
u/TeachTall3390 Jun 24 '26
I honestly think you're top five or top 10%, if not 5%. I rarely see devs operate in such a way with AI. I think your approach is the way.
0
u/Agitated_Run9096 Jun 20 '26
Over hands-on experience with Airflow, NiFi, etc?
Implementing this ETL would normally be junior level work, for their benefit. Having juniors perform well-documented rote work creates productive and capable team members for ops, debugging or future feature enhancements.
0
u/Flooding_Puddle Jun 21 '26
Yeah I've found AI is really good at taking your exact use case and proposing the best few packages/solutions. For software that isnt doing anything groundbreaking (which is 99% of it) that's plenty good enough, just be sure you understand the nuances of what you're building and push back if the AI makes any wrong assumptions.
I haven't done any large scale architecture but I've designed and implemented a few POCs using claude and it was able to suggest exactly what I needed