499 points · by fanf2 · 5y ago · 178 comments
Amazon was always at that time facing challenges on every front, the dot-com bubble breaking etc. There was a large build out of distribution centres around this time that was very expensive.
This was just one more of the challenges they faced. I may not have been senior enough to be privy to all the details, but I don't think this particular migration brought the company to near bankruptcy. That's a stretch.
I think the big migration was the database, and it took time, and Oracle was having some difficulties with running on Linux. But we were already using Linux boxes on our desktops since 1999. Webservers had switched to Linux around 1999. And migrating core code base which mostly C/C++ with Java starting to appear to Linux was mostly a challenge for the infrastructure teams and one of those routine large projects that every company has. I don't recall anybody talking of bankruptcy for this reason.
AWS (IaaS) was started after Andy Jassy, who was Chief of Staff or Technical Assistant to the CEO at the time (2003/4), came up with a different vision for "Web Services" [0] to solve web-scale infrastructure problems every single project at Amazon then faced (and so, couldn't ship fast). That is, until Andy reinvented it, "Web Services" was simply limited to access to Amazon's catalog of SKUs [1][2]. As (may be) part of "Web Services" they also ran Target, AOL (shop@AOL), and toys-r-us' e-commerce stores [2]. Mechanical Turk showed up in 2004/5, S3 followed early 2006, whilst SQS, EC2 launched mid 2006 [3], and SimpleDB late 2007.
[0] https://youtu.be/9XTdhpYV168?t=457
[1] https://reference.wolfram.com/language/WebServices/tutorial/...
[2] https://www.informit.com/articles/article.aspx?p=99979&seqNu...
[3] https://web.archive.org/web/20210109135519/http://www.newsfl...
SQS I believe started in 2004, but in a very limited capacity. I think that MTurk also started in 2004.
Andy Jassy is the one that came up with the vision for AWS. S3 was called S4 at the beginning! There was a big vision on the payments part, but I think S3 + EC2 took off faster than anyone expected, and I credit these two as the main reason why (IMHO) AWS has been so incredibly successful.
I had the privilege to work and interact with Andy Jassy in my past (I was at AWS 2008-2014 and I met him and sat with him numerous times, despite I wasn't based in Seattle), and I can say that I'm pretty sure I've never seen a leader as focused, as effective, as visionary as Andy.
The "2 pizzas team" structure at Amazon and therefore at AWS was also very conducive to running many experiments and failing fast.
EDIT: can you provide some links thanks to this. Thanks.
It wasn't linked to Darpa but it was developed as an experimental project by an autonomous team in South African office lead by Chris Pinkham and initially Amazon were quite secretive about it.
"""The designation "skunk works" or "skunkworks" is widely used in business, engineering, and technical fields to describe a group within an organization given a high degree of autonomy and unhampered by bureaucracy, with the task of working on advanced or secret projects. """
https://www.zdnet.com/article/how-amazon-exposed-its-guts-th...
https://en.wikipedia.org/wiki/Skunk_Works#:~:text=The%20desi....
Amazon EC2 was developed mostly by a team in Cape Town, South Africa led by Chris Pinkham. Pinkham provided the initial architecture guidance for EC2 and then built the team and led the development of the project along with Willem van Biljon.
with links to a Register piece
https://www.theregister.com/2010/06/25/nimbula_cloud_os/
And
https://web.archive.org/web/20100621120705/http://itknowledg...
As I recall, this had a performance penalty since memory reads/writes are now byte-by-byte. Also it could make code which assumed atomic reads/writes of 32 bit quantities go awry.
This double-free behavior was a part of the memory allocator implementation, not a feature of the processor. Linking (or LD_PRELOAD'ing) against another memory allocator could have gotten you the other behavior on either platform.
Note that even with the Solaris memory allocator not corrupting state or abort()ing if you double-freed a pointer, if a second thread in the same process had called malloc() and gotten that same block of memory in the middle of your double-free, then a later malloc() could also get a pointer to that same block of memory, and you'd unintentionally have two unrelated pointers to the same memory block, almost certainly resulting in memory corruption. One of my fist projects at my first job was fixing a bug that turned out to be memory corruption caused by a double-free. Continuing to apparently run fine despite a very serious and hard to debug bug isn't generally considered a good feature.
The internet does indicate that that seems to have been the default, though it was possible to enable more relaxed models starting from v8 (PSO) and v9 (RMO).
Most of the relaxation seems to have been dropped in the meantime:
> SPARC M7 supports only TSO, with the exception that certain ASI accesses (such as block loads and stores) may operate under RMO. […] SPARC M7 ignores the value set in this field and always operates under TSO.
GP may have confused SPARC and Alpha, the latter having (in)famously relaxed approach to memory ordering (uniquely reordering even dependent loads e.g. if you load a pointer then read the value at that pointer you may get stale data).
I think you mistyped this sentence. Did you mean x86 is more lax, so SPARC hides more concurrency bugs? Am I correct that more concurrency bugs would be hidden in a less lax architecture?
No, a more strict (less lax) memory model gives the processor less freedom to re-order memory operations, meaning that missing memory fences (explicit ordering) have potentially less effect vs. more lax memory models.
The SPARC memory model makes fewer guarantees (less strict), allowing the processor more freedom in ordering memory operations, potentially getting more performance. (There's a reason aarch64 went with a more lax memory model than x86, despite being designed decades later.) The downside is that bugs with missing memory fences are more likely to show up.
(Topically, at around this time, we were targeting Solaris 6.x and 7.x based systems.)
At that time, I remember deciding to prototype a B2B store in Java and then rewrite it in C++ when i will know what i was doing. I never rewrite that soft because Java becomes fast enough overnight.
In a sense, SUN kill itself with Java.
RHEL, Fedora etc arrived later.
At one startup, we had like 10 people logged in to a E3500 for Java builds. The thing had 512 megs of RAM, huge for the time, but with 10 people compiling and running java apps with a min heap of 64 megs, you got into swap pretty quick. It had these enormous disk arrays attached. I think it was 2x Sun Storage arrays with 16 disks each, each one being like 20 gigs or something, for a total of 640 gigs before the RAID. We were also running a database instance on the single box (Sybase, I think), which didn't help. A lot of people started running their apps on their Windows desktops.
This was pretty early, late 98 or early 99. We basically had built our own app server on top of Apache JServ, which predated Tomcat.
Then there was the Segway deal where I amused myself by checking the orders database to see how many they sold (because the numbers were so small)
If you told me back then that the stock was going to $3000 some day, I would have stuck around for longer.
I think hiring top-quality, motivated engineers doesn't just give you good software, it also provides all the idea generation that you're going to need to enter businesses you never thought about before.
Server software that needs larger address space than what is conceivable size of main memory became somewhat common only after mass adoption of amd64. In fact, amd64 is first 64bit architecture where it is common to have 64-bit only userspace, essentially all "64b" unix vendors in 90's shipped systems with most of userspace built in 32b mode (IIRC this includes even technically 64b-only OSF/1 AXP^W^WTru64, which while running on CPU that really does not have 32b mode had 32b ABI in the style of linux's x32 ABI).
Gah, so that's where ARM's THUMB instruction set got its inspiration from.
There was certainly development on ia64 in the kernel in 1999 under Project Trillian [1][2], although the first chip wasn't released commercially until 2001
Alternatively they may have been thinking about PAE, which was released in 1999 and allowed linux kernels to address upto 64GB on a 32 bit processor [2]
[1] https://lkml.org/lkml/1999/3/9/48
[2] https://en.wikipedia.org/wiki/Project_Trillian
[2] https://en.wikipedia.org/wiki/Physical_Address_Extension#His...
One reply is from one of the original engineers working on EC2 that said this swapover had nothing to do with AWS and it's origins, and another reply is from a former distinguished engineer stating that they swapped from compaq/digital tru64 alpha servers, not sun.
In 2012 I joined Amazon in a a small data analytics org within the supply chain. We were tasked with reducing split shipments: multiple item orders that could not ship out on a single box. The top reason for splitting a shipment was because we simply didn't have the right combination of items in a single fulfillment center. By the time I had gotten there, my manager had already successfully implemented the first transshipment network, moving items from one warehouse to another so they could ship out with the right combination of items and reduce a split shipment. But by then we were reaching diminishing returns on transshipment, and splits were still rising nationwide, and I was given the chance to provide analysis and new insights.
I probably ran a million analyses that year, but one of the most salient was that the major reason for splitting shipments was because we we sold so few of one of the items that it didn't make sense to keep more than one or two in stock nationwide. Those types of tail items were typically stocked in one of three fulfillment centers, the largest of the fulfillment centers in three regions of the US. And the number of orders getting split shipments between those three fulfillment centers was massive...more than enough to cover the cost of daily cargo plane transshipments between the three fulfillment centers.
I ended up leaving that team and moving on, eventually leaving Amazon completely. Right about the time I left, Amazon made a huge anouncement: Amazon Prime Air (eventually renamed Amazon Air to distinguish between the drone delivery idea). The press releases made it sound like they were launching it to deliver packages nationwide, but a quick call to my former colleague confirmed that upon launch, the only items they were moving was unpackaged inventory ... cargo plane transshipment, as my analyses had pushed for a few years earlier. Since then, they've expanded to actually moving customer shipments, but the service was initially entirely justified based on an analysis of split shipments I had done years earlier.
I say this because all humans like telling stories about themselves and the oversized contribution they had on something that made it big. It's cool, and it makes us feel important. But I was hardly the only person that worked on that project. There were likely dozens of others who were pushing for cargo planes for different reasons and maybe the transshipment story was enough to tip it over the edge. There were many more who bought into a crazy idea really early and came to own it, at least far more than someone who did a throwaway analysis years earlier. And they all probably have different versions of the same story. And they can all be true simultaneously, at least true enough to matter. Because none of us have a perfect recollection of the past...we all have a history written into our minds that is colored by the experience that we lived.
This also applies in families, in retelling of historical events.
In addition, the capability of the story teller to enthrall can cause their version of the story to be weighted more strongly than others.
This can lead to a situation where the story told by the better “showman” gets an outsized credence.
Beware one person’s recollection, and recall that extemporaneous notes are the next best thing to a recording because it is that hard to remember what happened.
If your goal is influence, you must be at least as good of a story teller as someone else talking about something you have a memory of.
That said, I was supporting Sparc Solaris through the late 2000s and the Oracle workloads were the last thing to move to Linux most places. The sheer power of the Sun boxes, along with the single-throat-to-choke was fairly unbeatable. No hardware vendor to look down their nose at you for using a "hobbyist" OS and imply that the problem must be at the Operating System level.
And, of course, you couldn't really replace those huge Sun Fire 6800 type servers with Linux.
As for why Twitter specifically it's because that's where their followers are, it will get the most views presumably vs. other platforms or mediums.
FWIW I personally enjoy tweetstorms, I'm not sure why. I think the break in between each tweet is nice, it's like reading a series of messages rather than a blog post and I find myself more engaged. It also means the author has to be fairly concise
FWIW, I used to despise it when people did this (post massive threads of messages), but frankly I think they fixed the UI for this years ago, and just don't understand the complaints anymore: you click the link, and can scroll through messages as if it were an article.
Between it auto-flowing the messages and the longer tweet length of 280 characters, I honestly don't see any advantage to those "thread readers" people keep linking to... they don't even have larger information density, which is ridiculous. (Hell... they frankly seem to make the text harder to read!)
(And yeah: I carefully write my tons of text on Twitter such that every single message is a carefully enough crafted thought that they could just about stand alone, which I think is actually good for the content.)
"fixed the UI" is a big overstatement - they improved the UI from utterly horrible to barely usable (for this purpose).
> you click the link, and can scroll through messages as if it were an article.
Imagine if someone wrote an article by creating a phpBB forum thread and posting every couple of sentences as a post on the thread. That's what this is like, for the rest of us - since you have a half million followers, your brain is probably used to filtering out all the crap and parsing the posts quickly. But the vast majority of us don't use Twitter as much or at all, and this adds a mental tax for all of us.
That's why the thread readers are so successful - you're not the target audience of them, but most of the rest of the Internet users are.
I remember in middle school jailbreaking my iPod touch to install all kinds of cool tweaks from Cydia, and I'm sure that exposure led me to continue messing around with electronics.
Thank you for all you did for the community, I attribute a lot of my interest in computers and coding to the early jailbreak days.
No you can not. Often times the posts are not in order. You have to expand multiple times and if you are unlucky you get pulled into another direction and miss half the story.
Unreadable isn't hyperbole. Maybe you have to have an account for it to be usable?
Note: the posted twitter-thread is the first I've seen that actually works for me. Not sure why that is.
Do you typically read Twitter in an app or via the web?
I find it annoying enough to read Twitter on the web - that I don't. Part of that is the fact that Twitter spends sizeable screenspace nagging me to log in - which presumably isn't a problem if you have an account.
Just wanted to say thanks for making Cydia! It feels very nostalgic to me.
i used to get frustrated like you.
then i realized that both correlate heavily with crap content, which makes sense, since the same person writing is also choosing the platform.
these days i say thanks for their self-filtering and move on to the next link.
there is more content than i can read as it is.
Twitter is even worse. Not only does it not make the time commitment clear up front, the tweets are short enough that you read them automatically. Then you're hooked into the doom scroll as you keep automatically reading one after another.
As a writer it means you don't need to bother with structure and other classical writing skills to keep your reader interested. You can just write disconnected chunks of text and rely on twitter to keep them interested.
It's also perfectly readable for its target audience of people who use twitter.
RackShack and other companies offered pretty cheap (started at $99/month IIRC) dedicated Linux servers which loads of startups used before AWS. There was also various virtual machine providers in the market.
These articles make it sound like every company before AWS had to build their own datacenter or at least buy a million dollars worth of Sun hardware to put a website online.
old colleagues of mine have been doing "dedicated/shared hosting" for the better part of nearly 25 years.
virtual private servers have existed for 20 decades+.
i meant 2 decades :)
I tried to look up who first said something along the lines of "A supercomuter is a tool for turning a compute-bound problem into an I/O-bound problem" and all I could find was an ArsTechnica article referencing it as an old joke. I thought it was an old joke by someone of the stature of Cray or Amdahl, but maybe that's apocryphal.
In any case, our network simulations attempted to perform a min-cut (using number of packets as the cost metric) to partition simulation nodes among threads, run one thread per core, and pin a thread to each core. With a network simulation, though, as you can imagine, the problem was usually bound by memory bandwidth.
Also, the client was a defense contractor, and the 400k+ USD box was an artefact of "use it or lose it" budgeting. If they didn't spend all of their budget by December 31st, the group's budget would be reduced the following year. In their case, the high cost of the box was a feature.
What is a bit funny is after fighting for $1,000 during the year, some budget manager calls in a panic near year end - how fast can you spend $150K - on anything you want. Turns out - as Amazon has noticed with cheap stuff, whoever has stuff in stock and can ship quick gets the deal - price totally irrelevant.
There was a while during the stimulus spending where politicians were I guess getting heat for not spending stimulus money fast enough, so the pressure to spend got pushed down big time. Every layer was trying to push spending out as fast as they could.
For those not familiar with this area and wondering why a higher level agency would push spending rather than trying to save money?
A lot of govt budgets between appropriation and final vendors are based on % of allocated spending. So a state agency will take 10%, a local agency will take 10%, and then it ends up in the hands of whoever does the work. Everyone above has built their budgets on all the money being spent. They've staffed for that.
So if you show up and spend 50% of your allocation, now they only get 50% of their 10% and can be in a real jam, particularly if they have already spent their entire expected amount or committed to spend it (staff have been hired). It can be hard to re-budget amounts between vendors / recipients so the pressure on whoever didn't spend all their money can be intense, because it's messing up a whole chain of other budgets.
Hi, I'm Zack, I was a Sr. Unix Administrator at AMZN in 1999 and worked alongside very talented folks like snovotny, lamont, yvette, grabatin, gborle, jamison, craig, and so many others. The responses from Benjamin Black and Peter Voshall are correct.
We definitely were on DEC Tru64 at this time. Sun was running the big databases like ACB. I recall worries that obidos might not be able to build in a few months time so the engineer with the little corgi (Erik?) spiked out a linux build and then it was linux pizza boxes as quickly as we could build them.
We built CMF and other things to handle mass provisioning but it was chaotic for quite a while. I don't recall anyone talking about what would later become AWS in those days.
What was going to cause this?
Peter Vosshall https://mobile.twitter.com/PeterVosshall/status/134769756024...
No. The entire fleet was Compaq/Digital Tru64 Alpha servers in 2000 (and '99, and '98). Amazon did use Sun servers in the earliest days but a bad experience with Sun support caused us to switch vendors.
So, the title is wrong.
There was almost a 24 hour outage of amazon.com because Digital Unix's AdvFS kept eating the oracle db files. Lots of crappy operating systems in the those days.
Both hardware and software in those days were, largely, steaming piles of shit. I have a feeling that many people who express nostalgia for those old Unix systems were probably 4 years old at the relevant time. Actually living through it wasn't any fun. Linux saved us from all that.
For all the money they were charging Sun did really put lot of engineering effort into Solaris and SPARC.
* https://en.wikipedia.org/wiki/Sun4d#SPARCcenter_2000
* https://en.wikipedia.org/wiki/SPARCstation
The Cray CS6400 had 64 in 1993:
* https://en.wikipedia.org/wiki/Cray_CS6400
SunOS 4.1.4 was released in 1994 and SunOS 5.x ("Solaris 2") started in 1992.
https://www.macrotrends.net/stocks/charts/AAPL/apple/profit-...
Well, they ended up as the .loser instead.
Microsoft: "Oh yeah? Well we put the COM into dot-com. Pthththth!"
IBM: ”When they put the dot into dot-com, they forgot how they were going to connect the dots. Badoom psssh!”
https://www.itbusiness.ca/news/ibm-brings-on-demand-computin...
I thought that proprietary unix was doomed when I started an internship at a bank's IT ops department in 2005. The seasoned Solaris admins I worked with had commissioned some Linux servers the year before in a non-prod setting and had written it off as a toy...
During the dotcom boom there was huge competition for ordering Sun machines and it was difficult to get enough, we were competeting with eBay to get our hands on machines.
During the crash, we went back to eBay as a seller and couldn't off load all the old Sun machines.
Here's an article from the time: https://www.baselinemag.com/c/a/Projects-Enterprise-Planning...
Here's a PR piece about it: https://aws.amazon.com/blogs/aws/migration-complete-amazons-...
Source: interned / worked at amazon for a bit a few years back
If Amazon rented out excess capacity after Nov/Dec, what did they do for next years Nov/Dec peak? Did they build up more capacity throughout the year and not rent it out?
My suspicion is that eventually AWS will become the "mainframes" of tech, and a new software+hardware paradigm will make all their services obsolete and their hardware too expensive. My money's on the return of store-and-forward communications. Once your watch has as much power and storage as a SunFire T2000, and every IoT device can store terabytes of data on gigabit networks, who the hell needs redundant servers?
"Amzn came within a few quarters of going bankrupt around this time."
"Amzn nearly died in 2000-2003."
Current Google's CFO Ruth Porat saved Amazon during dot-com crash [1] , she advised them to go to Europe to raise money otherwise they would face insolvency.
[1] https://www.vox.com/new-money/2017/4/5/15190650/amazon-jeff-...
A few things in the article start to rhyme a bit with where NVIDIA is at today. An expensive, proprietary, sticky stack. Purchased in large quantities by startups...
An acquaintance who was at Sun and now NVIDIA tells me "Please don't be Sun... please don't be Sun!"
Granted, NVIDIA is also in a great position in the gaming market, so they look pretty diversified and safe to me.
What is he referring to?
I'm in the semiconductor industry and in the 1990's everyone had a Sun workstation on their desk. We had large 16 CPU Sun servers in the closet for bigger jobs. Since everything was either command line or X11 it was easy to set your DISPLAY variable and display things remotely.
All of the EDA (Electronic Design Automation) tools ran on Sun / Solaris. Some of these tools from Cadence and Synopsys have list prices of over $1 million per license.
Those big Sun monitors with DB13W3 connections were expensive. We started putting Linux / x86 boxes with 21" monitors on engineers desks and running programs remotely from the big Suns. We even started stacking the old desktop Sun workstations in the closet and running stuff remotely from them because people liked the bigger PC monitors.
By 2000 the EDA software companies were recompiling their software for Linux. I talked to a few and they said it was a pretty easy recompile. x86 was getting to be faster and so much cheaper.
We added a couple of -sun and -linux flags to the CAD wrappers. Everything was still connected over NFS with the same shell and Perl scripts. Honestly the transition was pretty seamless. When AMD released their first 64-bit chips we bought a lot of them and retired our final Suns that were only around for >4GB jobs.
Its nodejs app, what are advantage or running in containers?
https://mobile.twitter.com/danrose999/status/130489658608692...
Ref: https://en.wikipedia.org/wiki/Virtuous_circle_and_vicious_ci...
But in 2020, most small/medium sized business could be run on two-ish beefy boxes. With a cloudflare, or similiar, firewall there simply is no need to build your own or rent a datacenter.
[1]: http://www.brendangregg.com/blog/2017-11-29/aws-ec2-virtuali...
I really want an Alpha box to play with, partly out of curiosity but partly to feel like a real man programming with next to no memory consistency.
Although they didn't help themselves it does seem like the probably-ending dominance of X86 has hurt the industry up til now.
edit: It's a pretty crap ISA, controversial?
Illumos and the BSDs seem to be doing okay, and ARM is huge. The x86 family didn't die out but it is wacky.
> I really want an Alpha box to play with, partly out of curiosity but partly to feel like a real man programming with next to no memory consistency.
I'm pretty sure ARM will give you that.