by capableweb · 3y ago · 0 comments
I'd have opted for a setup where basically every single "service" in that architecture diagram is one function in a monolith program. Easier to maintain, more performant, easier to deploy and basically better in every single way except you can't individually scale components. But at the scale that the project currently is, I don't think that's needed for a long time, nor is it hard to scale one machine if needed.
But again, if it's just a educational exercise in "web scale architecture", then it of course is OK. But I wouldn't want other students to see something like that and think that it's necessarily to create such a monster for a relatively simple "moving data around and wrangle it a bit" program.
Are you going to be maintaining it? Are you going to even be using it? Why does it matter to you what someone else did in their spare time for their own amusement? Or even to make a commercial product out of it? Either way, it’s not your architecture to backseat architect, let people do what they want.
Said differently, it's worrying that people decide to overengineer architectures like that before there's any real need. It's a sysops version of the early optimization problem.
Ten years ago, the student would have probably built something much simpler with a couple cron jobs on a simple EC2 instance, maybe celery/rabbitmq as a message queue if he was feeling fancy and called it a day
Explicitly,
> A bunch of people take information they come across on the internet and think that's the only way of doing things, so if someone comes across the post, looks at the architecture they might think building it with so many components is a required thing, not just optional for really big projects.
> So basically, I want to save myself and others time.
This seems like not only ridiculous critique, but also just plainly not the author’s problem what others choose to do with his open source project.
> Said differently, it's worrying that people decide to overengineer architectures like that before there's any real need. It's a sysops version of the early optimization problem
And why exactly is it yours or other commenter’s problem what people choose to do with their own time? How does it in any way shape or form impact you what this other person chose to do with their project that you will never maintain, contribute to, or likely even use?
You may or may not disagree, but it's arguably a worthwhile comment. Possibly more so than your comment on the merits of someone else's comment... which just derails the conversation into this meta-discussion
> And why exactly is it yours or other commenter’s problem what people choose to do with their own time? How does it in any way shape or form impact you what this other person chose to do with their project that you will never maintain, contribute to, or likely even use?
Critiquing technology referenced in submitted posts is what we do for fun around here...
He's allowed an opinion especially one that's valid.
It was constructive and explained how he would want to see it structured.
He did it the right way.
Where as your comment is unconstructive. Doesn't foster discussion.
If the only point you're trying to make is to ask someone to stay quiet why not leave it to the mods or even silently downvote and move on?
There was no constructive criticism, no “you should do this differently” it was “this is worryingly large and you should feel bad if this isn’t an educational project”.
If this is “the right way” then I don’t want to be right, because it’s a shit way that lacks empathy or tact.
No he didn't. He had a caveat.
> no “you should do this differently”
That's not the case..he clearly says this is how I would do this differently.
None of this matters. Arguing about arguing is futile.
As the adage goes: Suppose you have a problem, and you say I know, I'll use microservices! Now you have N problems.
I would venture as far as saying nearly every personal project built to scale is over engineered.
I'm personally dealing with infrastructure at loads of different places, and the amount of engineers who over-complicate their infrastructure pains me, they all go for a distributed architecture before the products they are building even have any users, because they've read bunch of blog posts about building it that way.
It sucks to spend so much time and effort on maintaining and improving something when it's not really needed in the first place. Like using a Ferrari to deliver food in a traffic-heavy city, instead of just having a moped.
So basically, I want to save myself and others time.
If someone takes one look at one project and decides to copy it’s architecture word for word, then it’s on them. Not on the person who built an open source project, for whatever reason, and put it out there for the world.
It’s not your architecture to architect. If you want to build your own service to show best practices, then go for it. You weren’t there to make decisions, you don’t know of the reasoning behind them, and it seems ludicrous to backseat architect with context, let alone without any amount of it.
See it as wanting to advance my own trade by providing opinion on the current "everything should be a serverless function" trends in the hope of hopefully be able to move the trade into a different direction.
[EDIT]: Removed comment about user.
It's a pretty cool system, you have your roster of players and setup skates, and it automatically emails everyone x number of days before the skate. You can see who signs up, pay online, etc and if a goalie who's signed up cancels, the 'Skate Operator' is emailed immediately to take care of that (it's a big deal to not have two goalies). It also has an automatic waitlist, and if someone cancels before the skate, and you're the first person on the waitlist, it moves you to the end of the list and emails you to let them know you're in for the skate. It also sends out a reminder X hours before the skate, day of, etc.
After I started using it for my own skates, a few rink managers contacted me to discuss using it for their rink. I met with 2 different groups / municipalities (because most rinks are owned by the city they're in), and it never went any farther than those meetings. They didn't want to use a system by some guy that couldn't maintain it, wouldn't keep it going for more than a year or 3.
13 years later and I'm writing a new version and have run something like 11k skates in that time. There is one small, privately owned rink near my house, has used it the entire time without issue. I've got a few other friends/individuals that use it, too.
It is possible for a single person to create and maintain something purely because they need it.
Also, much of the complexity is from pulling from data sources. Lots of apps are just the web site and database, but weather app needs the complexity. I bet EventBridge has some important purpose.
It sounds like you'd be well positioned to offer some feedback, but I'd recommend against that without your practicing some empathy for the stage he's in with his education.
To me, it is kind of expected. “Perfection is achieved, not when there is nothing more to add, but when there is nothing left to take away,” sure, but perfection – or even distantly approaching it – is the product of expertise and practice.
[EDIT]: He's a Phd for chrissakes!
And yes, if the whole point is to utilize AWS resources, then of course a architecture like that is fine, as it's a learning exercise (to learn how to utilize resources). My comment includes that as well.
As far as I can tell, the author is studying at a university, that makes them a student in my mind. Maybe they do other things than just studying, I didn't look into it very far, hence the "maybes" and other caveats in my initial comment.
AWS is more reliable, and from this architecture, probably doesn't have to do anything. If the VPS dies, then the site is down until can build new VM. Or have to run two of them at twice the cost. More since he has to setup database or shared storage.
That might be overkill for this site, but for some upfront work, he gets something that needs less maintenance. If going to learn, then should do it the right way. He may be scaling for the future, but it is tradeoff to design now instead of later.