News for hackers. Stuff that matters.
Re:I don't want to do front-end anymore by sriku on Tuesday February 09, 2021 @06:01AM (#26076053)
Some of my colleagues and I were joking recently that the "AWS well architected" framework should've been named "AWS well paid" framework. It's like it's no longer legit to run a small site serving a small community. It has to "scale", be secure against minions who want to usurp your machines, have backups, CI, CD, GitHub events, run on K8sa and be "cloud native", and on and on .. to show some HTML page when an end point is hit. I feel I can't even joke about this any more here.

The stacks run deep on both ends .. but I'm often not sure to what end.

Re:I don't want to do front-end anymore by vmception on Tuesday February 09, 2021 @07:20AM (#26076636)
It actually doesn't have to.

Serving a static site on S3 can make you hundreds of millions of dollars. Of course thats because you put a metamask plugin and cater to crypto people and don't even have to build a backend to do anything impressive there.

But its scalable enough!

Re:I don't want to do front-end anymore by lhorie on Tuesday February 09, 2021 @08:54AM (#26077423)
Fun trivia: for the longest time, lichess.org - which by any measure is a high traffic, hugely interactive web app - was run on... a single server with 8 CPUs and 24Gb RAM[0]

[0] https://lichess.org/forum/lichess-feedback/hardware-of-liche...

Re:I don't want to do front-end anymore by tkinom on Tuesday February 09, 2021 @09:15AM (#26077666)
Agree! One can still Keep It Simple and Stupid (KISS).

Our latest MVP - https://www.code-scope.com lets one interactively analyze and document GBs of source such as linux kernel.

It runs on Digital Ocean's $5 instance, build just with Jquery - bootstrap4.

The app binary that runs code-scope.com website is < 10MB including all the frontend and backend code.

Good old tech such as jquery works very well for us.

Complex js front-end tooling is a choice, not a requirement for develop web app.

Re:I don't want to do front-end anymore by mumblemumble on Tuesday February 09, 2021 @10:05AM (#26078272)
KISS remains one of the most under-appreciated principles out there.

I still annoy people by talking about my time at the high frequency trading firm, because working there was a revelatory experience. They were operating at a scale and velocity far beyond any place I've worked at, with lower tolerance for downtime, and very little hardware, relatively speaking. The traders had fun, of course, but it was frankly kind of boring to work there as a techie, what with everything ticking along so smoothly all the time.

And the way they got there was through an absolutely fanatical devotion to the KISS principle.

Re:I don't want to do front-end anymore by MikeDelta on Tuesday February 09, 2021 @01:11PM (#26080700)
Too often I see developers not thinking about KISS, produce very complex and slow systems. And as a solution to improve the performance, they decide to throw 10x more cloud infra against it instead of thinking a bit harder.
Re:I don't want to do front-end anymore by mumblemumble on Tuesday February 09, 2021 @01:54PM (#26081189)
Especially with the current popularity of scale out as a golden hammer.

I've come to think that scale out is a self-fulfilling prophecy. If you choose a solution that's designed to support scale out, then all the mechanisms and limitations (yes, limitations) it needs to adopt in order to make distributed processing work will impose a burden of overhead that you will need to offset by scaling out.

Re:I don't want to do front-end anymore by why_Mr_Anderson on Tuesday February 09, 2021 @02:33PM (#26081567)
It's actually sad to see that scale-up almost disappeared, especially considering the insanelly powerful HW we have now, just NVMe SSDs are game changer for anything I/O bound. I remember how few years back there were some people in our company completely floored when they learned that StackOverflow ran on 1 SQL server (quite beefy though, 1TB RAM IIRC). Similar 'cloud' (aka 'someone else's datacenter') setup would cost significantly more, but that seems to be forgotten/forbidden knowledge these days. I guess people need to justify those cloud technologies certificates.
Re:I don't want to do front-end anymore by MikeDelta on Wednesday February 10, 2021 @04:33PM (#26095126)
Yes, exactly. I don't want to call it the 'new' generation but many have seem to forgotten how efficient systems can be if you build them properly.

I haven't seen any certificates that replace sweat and hard work yet, except in organizations where they cannot keep track of individual developer performance and simply count certificates.

Re:I don't want to do front-end anymore by nefitty on Tuesday February 09, 2021 @11:24AM (#26079342)
Do you happen to know of any best practices guides that might help others achieve similar results? I’m working on an app that might have to scale very quickly at launch, and I want to do my best to help our team do it right.
Re:I don't want to do front-end anymore by mumblemumble on Tuesday February 09, 2021 @02:01PM (#26081271)
No, I don't. And the specific practices at this company would be unpalatable to almost anyone. Package managers for dependency management, for example, were banned, because they made it too easy for the dependency list to grow in an uncontrolled manner.

There was a lot of homegrown software where others would use a library. That was deliberate. If you need five features, but choose an off-the-shelf package with 5,000 features, pretty soon you'll find that the list of features you're using has grown to 50, then 500, and so on, even if you don't actually need any of it. If a toy's in the box, the kids will play with it.

Maybe one thing to try is to focus on imposing constraints, and making people live within them. RAM, # of CPU cores, whatever. Software is like a gas. It will naturally expand to fill all available space.

Re:I don't want to do front-end anymore by devlopr on Tuesday February 09, 2021 @01:15PM (#26080747)
Simple advise. Start with a 5 dollar droplet and increase ram / disk speed when required. If you reach 64 gigs consider spliting.

What I do is put my database on a droplet and my files on another and it can handles millions of requests. Put them on the same machine and I need to increase ram higher than the cost of multiple small droplets.

If you ever reach those limits consider setting up a load balancer.

Re:I don't want to do front-end anymore by tkinom on Tuesday February 09, 2021 @03:56PM (#26082286)
In https://www.code-scope.com, the source code search engine database is in the same $5 droplet that run webserver - We are cheap. It is part of <10MB app which hopefully anyone can download soon. We figured the SSD can do 1-3GBs/second transfer, no point to slow it down with separate process or worst, separate network node.

All the web queries are responded in <<< 1 second - so far....

Re:I don't want to do front-end anymore by r45tio2 on Wednesday February 10, 2021 @04:07AM (#26087004)
This is good, and it works well. The issue (as others may have pointed out) is not that simple apps _can't_ be produced, it's that they _won't be accepted_ when they are. The same thing happened to TCL/Tk ... it "doesn't look right" so is dismissed. By and large, the driving force seems to be those who want to pay for "sexy dashboards", usually but not limited to those whose primary motivation is initial impact. Aesthetics are everything - functionality is secondary. Snake oil sells. Things that "look old" are laughed out of the room. It's unhealthy.
Re:I don't want to do front-end anymore by busterarm on Tuesday February 09, 2021 @07:33AM (#26076727)
I built a static site served by S3 & cheap Lightsail boxes that serves a $5B/yr business.

That was 4 years ago and beyond basic patching they've barely touched their infrastructure and it runs around $100/mo.

Re:I don't want to do front-end anymore by codegeek on Tuesday February 09, 2021 @08:51AM (#26077398)
"that serves a $5B/yr business."

Ok but is that static site primarily generating the $5B in revenue ? That's more relevant to know. Having a static site for a business where the revenue is generated elsewhere is not that big of a deal in my opinion. Yes I get your point that the $5B company is hosting a static site on S3 which is cool but what will be cooler is if THAT static site is the primary revenue driver. I bet it isn't.

Re:I don't want to do front-end anymore by vsareto on Tuesday February 09, 2021 @09:52AM (#26078121)
I think it's more along the lines that a $5B/yr business would typically have gone to a large contracting firm, and the resulting solution would have been over-engineered with all of the front and back-end stuff and resulted in a higher cost to solve the same problem.
Re:I don't want to do front-end anymore by busterarm on Tuesday February 09, 2021 @10:19AM (#26078435)
^ You got it completely. Thank you.

Actually probably the output would be worse, because there's a significant amount of domain knowledge in building an effective website in this space. The only companies that are effective at it do it in house or go to specialists in the space.

Car dealership advertising is actually extremely similar in this regard. There are just a few big players working with hundreds to thousands of dealers.

Re:I don't want to do front-end anymore by monsieurbanana on Tuesday February 09, 2021 @09:11AM (#26077611)
I tried to imagine what kind of website could generate $5B without requiring more than $100/month of hardware. Seems impossible.
Re:I don't want to do front-end anymore by busterarm on Tuesday February 09, 2021 @09:24AM (#26077782)
Just take a look at the top 10 adwords keywords and let your mind wander. Our business touched 4 out of 10...
Re:I don't want to do front-end anymore by monsieurbanana on Tuesday February 09, 2021 @09:35AM (#26077934)
Found in a random blog post, top 10 keywords:

- Insurance

- Loans

- Mortgage

- Attorney

- Credit

- Lawyer

- Donate

- Degree

- Hosting

- Claim

Still can't see it. But just to be sure, you're saying that the $100/month website was directly generating most of that $5B?

And not, for example, being just a bridge between users and an army of attorneys?

Re:I don't want to do front-end anymore by busterarm on Tuesday February 09, 2021 @10:14AM (#26078376)
Qualified leads are king in that business.

Keep in mind that a large number of law firms in this space do not try cases and just generate and sell leads.

Yes, obviously there's a lot more that goes into it, but my point was that websites can be extremely simple in their infrastructure and still be extremely effective.

Re:I don't want to do front-end anymore by busterarm on Tuesday February 09, 2021 @09:23AM (#26077759)
The online property only accounts for about 10% of the total ad spend (over $200M/yr). The website accounts for exactly 0% of the bread and butter (high volume, low profit) business, but easily 60% or more of the the rest of it (low volume, absurd profit).

I've talked at length about it before in comments. Not really looking for the repeat discussions.

Re:I don't want to do front-end anymore by Railsify on Tuesday February 09, 2021 @07:48AM (#26076851)
This use case is about where AWS cost effective scalability ends, anything more complicated and you are into multiple thousands a month for a redundant solution for a critical web-app with a database. We used to run prod and stage envs in aws but as our stage environment grew we realized we could on-prem some pretty bad-a* hardware for the cost of a few months AWS billing. Now we run prod on aws, staging and dev locally.
Re:I don't want to do front-end anymore by monsieurbanana on Tuesday February 09, 2021 @09:19AM (#26077716)
There's a cost maintaining a staging environment on-prem while prod is on a cloud. Slightly different versions of databases, different networking, etc... It could create issues. This does depend on how much you buy into the AWS ecosystem, if it's strictly EC2-only it's not as much of a problem.

Not that I wouldn't do it, a lot of times it does make financial sense.

Re:I don't want to do front-end anymore by murukesh_s on Tuesday February 09, 2021 @08:39AM (#26077273)
Second that.. and hardest thing is you don't really know where you are getting charged. i mean you can look at the billing but boy they do add up to 1000s before you know and you are so hooked into auto scaling, s3, rds with multi-az what not..
Re:I don't want to do front-end anymore by busterarm on Tuesday February 09, 2021 @09:26AM (#26077815)
You don't exactly need to tell me. I have 10^4 machines in multiple clouds right now plus more n datacenters. Cost effective scaling is hard, but you have to design your applications around it.

Tbh, I find most engineering orgs don't have the competency to pull it off.

Re:I don't want to do front-end anymore by dvfjsdhgfv on Tuesday February 09, 2021 @06:51AM (#26076428)
It's basically about money. As a tech guy, you choose the technologies with the largest margin. Companies who use AWS are either (1) rich enough to spend huge sums of money, (2) can't calculate or are gullible enough to believe it's the best solution for them. In either case, typically you're more likely to make money on AWS-related technologies than working for more cost-conscious clients who understand the cost structure of the overall infrastructure. That's why people code a Hello World as a React app on AWS, as ridiculous as it may seem.
Re:I don't want to do front-end anymore by matthewmacleod on Tuesday February 09, 2021 @07:20AM (#26076637)
This is absolute nonsense which reveals more about your ignorance of companies’ technology trade offs than it does anything else.

Consider for a moment that other people might in fact not be idiots, and might have legitimate reasons for choosing particular technology stacks that your snarky attitude has missed.

Re:I don't want to do front-end anymore by commandlinefan on Tuesday February 09, 2021 @05:15PM (#26083123)
> Consider for a moment that other people might in fact not be idiots

I've considered it many times, but I continuously find evidence to the contrary.

Re:I don't want to do front-end anymore by collyw on Tuesday February 09, 2021 @07:26AM (#26076678)
My guess is that > 90% of people using Kubernetes will never need to scale elastically. My company uses it, cost a ton of developer time. It gives us high availability which is nice, but we have no need for the scaling in the foreseeable future, and that was what was used to sell Kubernetes to our founders.
Re:I don't want to do front-end anymore by nilkn on Tuesday February 09, 2021 @07:41AM (#26076776)
I see this sentiment a lot online, but k8s for us has been quite simple to learn and use and, like you acknowledged here, solved a lot of availability issues out of the box for us that we previously had to deal with in more manual ways. Better yet, it’s a standardized platform that we can use company-wide and that every engineer understands, including potential hires — that’s very valuable. I feel it has become a common trope to claim k8s is complicated and overkill but we are quite glad we made the move to using it.
Re:I don't want to do front-end anymore by weeboid on Tuesday February 09, 2021 @09:27AM (#26077824)
Have you ever considered the workforce aspect of technologies? Like, you'll still need devops, and if you aren't at least dabbling in containers and elasticity, you're going to get the luddites.
Re:I don't want to do front-end anymore by Guthur on Tuesday February 09, 2021 @07:36AM (#26076743)
Yes, though the GP made no reference to Kubes at all and was talking more generally about AWS.

AWS has an absolute tonne of great and not so great services but you can easily use the basic stuff to get quite simple and cost effective solutions. You can YOLO it on the console and not even worry about cloudformation if you want, and if you have no customers it will likely be free tier to boot.

Re:I don't want to do front-end anymore by matthewmacleod on Tuesday February 09, 2021 @07:46AM (#26076832)
Kubernetes was not mentioned by the comment I replied to, which was about AWS.

Even then, your founders might have made a bad business decision – which isn't unusual, and companies can often make bad business decisions, such as prioritising investment in scalability when it's not a required feature.

They can equally make good business decisions – such as rolling out a relatively standard technology like Kubernetes to gain the workflow and availability features, even though scalability is not required.

I agree that it is important to remember that sometimes "old-fashioned" approaches can be totally suitable for some use-cases, and they can be too often written off. But equally let's try not to assume that everyone who rolls out a particular modern technology stack is a gullible fool.

Re:I don't want to do front-end anymore by dvfjsdhgfv on Tuesday February 09, 2021 @12:37PM (#26080313)
I haven't called anybody idiots. There are genuine reasons for using AWS specifically. I've been consulting to several companies helping them to manage their infrastructure, and more often than not it turned out that they chose AWS "because everybody is doing it", not because they understood the tradeoffs well.

To be more specific: (1) they were not able to calculate the overall costs upfront. Yes there are many calculators, but you know the actual cost only when you receive the bill. Moreover, there is no hard cap on costs - people have been asking for it since 2006, and AWS was first saying they understand it's important and will take care of it, but in the end decided to ignore it.[0] Yes, you can set up alarms but that's not what people want. (2) AWS is marketed as saving on IT staff costs but it's ridiculous: you need competent staff to support it. The AWS infrastructure is huge, it's a whole ecosystem in itself, and it has its particular quirks. You definitely need smart people to run it and stay out of trouble. (3) Very often when you run a cost analysis of a particular aspect (like storage, processing etc.), it turns out the difference between AWS and, say, bare metal is enormous and, consequently, increases radically with the amount of resources used. There are several large companies who decided to move from AWS to bare metal just for this reason, saving enormous amounts of money.

Now, there are several scenarios where it doesn't matter, or it matters but it makes sense to use AWS anyway, but in my personal experience this is minority of cases I had to deal with. I have nothing against AWS per se - also, there are some aspects of AWS infrastructure that are a pleasure to work with. Nevertheless, usually it makes more sense to use a whole ecosystem, and the more you get locked in, the more difficult is to get out, and the sunk cost fallacy is omnipresent among companies of all sizes.

[0] https://forums.aws.amazon.com/thread.jspa?start=50&threadID=...

Re:I don't want to do front-end anymore by le-mark on Tuesday February 09, 2021 @09:42AM (#26078021)
This analysis is spot on, and well worth the time to consider.
Re:I don't want to do front-end anymore by j45 on Tuesday February 09, 2021 @07:16AM (#26076611)
Linux has far fewer networking and scaling issues as it once had, something that cloud helped with.

VPS servers are more capable than ever, and the manageability might surprise some who know cloud as the only way. It's not the only way, but it can be valid now often than realized.