155 points · by ingve · 9y ago · 152 comments
I'd love to hear what you haven't done in the past due to bandwidth/download pricing that you'd have wanted to...?
Gleb @ Backblaze
The big thing missing from B2 for me now, relative to the other big players, is the ability to process my data once it's stored with you. If I store my images in S3 for example, I can use EC2 to thumbnail them without paying anything for retrieval. At the moment I can't do that with B2 and it seems unlikely to make sense for you to build your own compute cloud but perhaps you can integrate with others.
Can you tell me more about how you use/would use cloud storage? (with or without compute)
Primarily though I store media. I have (for a home user) large amounts of high resolution (lossless audio, RAW images, high bitrate (even ProRes) video) media that I like to keep for archival and transcoding but don't need for playback. I want to store the original media somewhere safe and cheap but have the ability to transcode it to a format suitable for playback/streaming on demand.
Actually it just occurred to me that it might be worth you talking to the folks at Plex (https://plex.tv) about this too, as they're working on their Cloud product and need more places for their users to store media.
I'd like to add cloud capabilities, but for that I'd have to run the backend process somewhere that can easily update the DB, and easily read/write the data in the vault, along with syncing the full DB to the vault location after a backup.
My other option is to run everything locally, and compute a delta file between versions of the DB and send that delta over to the vault (i.e., do D2D2C backups).
Edit: Another possible requirement -- I'd like to pack multiple smaller files into an archive file, and deposit that into a bucket. But as files age out of the archive, I'd like to be able to move active ones out of it and into a new one. Right now, I'd have to re-create the still-valid backup data out of on-hand information, upload the new archive, then send a command to delete the old one.
By combining them I can have a cheap box (Linode for instance) with a local write cache, with B2 providing a terabyte of raw storage, and get a slow but effective VM with a 1TB "local disk" for under $20 month. Which is great.
A crosspromotion deal between Linode and Backblaze would be fantastic.
The reason I can't see traffic just being straight free for everyone is that for Backblaze to make traffic free, it needs to make arrangements with the providers to reduce costs (for example by connecting directly rather than through the internet).
B2 references Vintage Aerial as a success case for storing their large image collection. So I checked out their site, pretty cool service. So I right click -> view image, on the large & thumbnail images on their site and they're on AWS of course (archival storage on B2 I assume).
Hey Backblaze, AWS's bandwidth margin is your opportunity.
AWS picked the first two. B2 picked the second two. I don't think they would make a great CDN host.
> AWS picked highly available, redundant > Backblaze picked redundant, and cheap
Both AWS and Backblaze have had (and will have more) outages. No single vendor is a good choice for a service that absolutely positively must stay up no matter what.
We liked this article that shows how to configure Amazon S3, Microsoft Azure, or Backblaze B2 so you are not susceptible to Amazon outages: https://cloudrail.com/avoid-next-aws-s3-outage-failover-scen...
If I have a 10000 files, this will be a LOT of bandwidth. I JUST want the list of file names, NOT the other redundant fat. Solution:
1) let me specify which fields I want OR 2) compress the response
Backblaze does not charge anything (zero) for the bandwidth of the b2_list_file_names response. What we mean for the bandwidth is "file contents you download". So compressing or not compressing b2_list_file_names won't make any difference in your bill.
We do change a TINY "per transaction" charge on api calls like b2_list_file_names. The reason is to break even on the farm of servers (we call them "API Servers" internally) that are needed to support the HTTPS load generated from those calls. But that is really really tiny, like you get 1,000 calls for 4/10ths of one penny.
I like B2. And thanks for "absorbing" the cost of the list() function.
My sincere question to you is:
Sending this much redundant data in the response can cost YOU a lot, it is not "trivial" when you add millions of requests. How hard is it to allow the user to specify which fields he wants in the response?
Also, please answer my other question about the authorize() token headache.
* a bucket has 1M files in it
* uploads are generally of 200 files at a time
* each file name is guaranteed to map to a unique content (content-addressable)
* some of the files to upload might already be in the bucket
It's actually quite expensive to list all of the bucket files to find out if they haven't been uploaded. Especially when the file names are hashes it's hard to filter by prefix as well. (same issue on S3)
It would be great if there was a way to just upload the files and get an early 303 response if the entity already exists and has the same SHA1. That way the client can just push all the files without having to build the "new files" list.
The thing I haven't done due to the download pricing is back up very much data into B2. Since the B2 API doesn't support renames, you have to download and then re-upload a file to rename it. I would be storing a lot more there if renames were available! [Note: they may be available now; I haven't checked for a few months. Please tell me they are.]
I was an early adopter of B2 and uploaded a bunch of files with naming that's incompatible with the "virtual folders" of the web UI (wrote my own script to handle this since Duplicity et al did not yet have support). Now I'm stuck and the only solution offered is just "pay us to download everything again".
Also, the web interface does not have any pagination. Since virtual folders are based on naming, and since rename support is not available, this can flood the browser. I have a bucket that crashes the tab every time I try to open because it's not paged. I could write a little Greasemonkey injector to page it myself, but meh, I don't really care enough to do that. Instead, I just don't really use B2.
When I discussed these issues with support and suggested that at least pagination on the web interface was a basic thing that engineering should be able to accomplish quickly, they did not seem to agree.
I want to use your cloud storage instead of S3. My main reason for using S3 is the DURABILITY (not reliability). S3 offers 99.999999%, which means it is replicated numerous times. Which means I DON'T HAVE TO WORRY ABOUT taking extra customer backups, it is "baked" into S3.
How is the durability for B2?
Their main disadvantage is that they only have one datacenter, unless they have gotten a second one recently.
Having said that, if your data is absolutely critical then I agree that even further geographic diversity would be desirable. Most likely you want to avoid the Pacific Rim, and volatile countries. A central European site/company would be good for this. Obviously you should expect to pay more to store your data in more than one place.
https://www.backblaze.com/b2/cloud-storage.html
"Reliability: 99.999999% durability."
I like b2 and am using it for backup in some projects, but unfortunately it's still not an appropriate choice as a primary data store.
The common counterargument I've heard is that you should have multiple redundant storage providers that you manage at the application layer anyway. Problem with that is, there are a near-infinite number of things I "should" do, but very finite resources to do them. S3 backs up across multiple availability zones by default, so using it means one less thing I have to spend brain cycles worrying about.
But for regular backup, this bit hard. I ended up switching to Crashplan for not only Linux support but also support for external hard drives. Then again the official Crashplan client is GUI-only and AFAIK closed-source, so you can't run it on a headless server
However, we have a sizeable Elasticsearch snapshot in S3, and it's getting expensive. We'd love to use B2 instead, but there's currently no Elasticsearch plugin for B2.
The service I provide has, currently, an average of 60k http requests daily, approximately 10Gb. Those requests are images stored on Google Cloud Storage. I'm going to offer a new service for photographer to create online galleries, by some calculations I had made the average daily requests will increase around 10x, growing up to 600K daily.
My main questions about B2 are:
1) Is there any use case you know of someone uploading files to B2 directly from the browser? I know this is possible, but as per I know I would have to open tokens and url uploads on JS code, which, obviously, is not cool (and I won't do that). I can do this on S3 and GCS, their API offers the possibility to create a key on the server and use it on the webpage, but I didn't see anything like that on B2.
2) About http requests, is it ok to have this amount of requests (600k) in a daily basis? I mean I know B2 is excellent for backups but I'm not sure if it will be good serving websites that have a big number of images.
Thanks!
I'm a backup customer of Backblaze (have been for years) and I backup five of my families computers.
I'd really like it if your online restore feature would let me buy multiple backups on a single hard drive as an option. I've considered buying a hard drive with my backups from your company multiple times but I wouldn't pay the premium you ask without being able to have all five computers on the drive.
This is prohibitively expensive to do for multiple computers at once, and gp would prefer a single hdd that has a copy of the backup for multiple computers, which would reduce the cost.
I understand download pricing can get complicated. But again I'm not asking about that. I realize download pricing also is important, but right now I'm just asking about storage pricing. Not sure if you are answering questions here but if yes, please share what you know.
B2 Glacier
Storage: $0.005/GB/mo === $0.004-$0.005/GB/mo (by region)Upload: Free === Free + $0.05/1000 transactions
Download: $0.02/GB === $0.05-$0.09/GB
Retrieval Fee: Free === $0.003-$0.03/GB + $0.003-$0.03/1000 requests
Retrieval Time: Milliseconds === 1 min - 12 hours
In short, unless you only upload very large individual files, do nothing with them, and don't access any of them for at least 10 years...B2 is lower cost. (And, of course, doesn't required you to wait to get them out.)
Edit: BTW it's really a breath of fresh air to see someone whose product is covered hanging around for a while answering questions. So many people in your position either don't show up on their HN stories at all, or do so only for an hour or so and then leave a ton of questions unanswered.
Probably my number one wish list feature for hacker news would be if they could somehow coax people at companies that get linked to return more, including beyond the first hour or first day.
I hope you check back on this story later and answer more questions that come in from different time zones.
This is unlike S3, which simply needs a STATIC API key, and boom, you can access the API. I don't know why you did this, but it is bad developer UX. Is it because tokens are "cool". I see no need to have this concept of tokens for your API. Why I am annoyed:
1) An API operation now requires one ADDITIONAL call. B2 already requires 2 calls to upload a file, and this now means 3 calls!
2) Related to above, this means bad latency. The roundtrip can be significant, especially since you only have 1 data center in California. My users will NOT be happy.
3) My code is much more complex now.
4) It is more work FOR YOU. This means more processing. More resources wasted FOR YOU. More cost. Why would you do this? You are supposed to be lean. Imagine millions of extra calls EVERY day. Adds up.
Is there a solution to this? Can the token be cached? If so, for how long.
Also, would love to see a reasonable rationale for this? If there is no rationale, then please provide a STATIC approach to access your API.
I REALLY like B2, and I wish they could think of developer UX a little more.
https://help.backblaze.com/hc/en-us/articles/218513487-Is-th...
Yes, the first API call requires authenticating first but every additional call reuses cached credentials, so no change to latency.
I've been using Backblaze to write a for-fun app, using c++ and libcurl, for the last few weeks and I've found it to be wonderful from a developer perspective.
Their documentation is short and sweet. They have capabilities to help you stress test your implementation to make sure you handle edge cases! (you can pass an extra flag and it will randomly send errors) That is so amazingly helpful! And to top it off, their support staff is quick and responsive even with technical details. _And I don't even have a paid account_
If you find dealing with this to make your code "much more complex", then as they say "my consulting rates are very reasonable, my email is in my profile". :P
(Disclaimer: I do not work for Backblaze, have never given them a dime of my money. So far.)
I like there docs, short and sweet. It fits in their lean approach. But, using tokens is much heavier than the easier static key approach.
> Backblaze requires an authorize() call to obtain a token before calling any API function.... this now means 3 calls to upload a file
That is correct if you only plan to upload one file. The "authorize" can be reused for weeks, and so can the upload URL. So if you want to upload 100,000 files, it is 100,002 calls to upload the 100,000 files (give or take).
It is true this is slightly more complex than it could be, but in turn this means we don't need to have any load balancers in our datacenter (which in turn makes the cost of the service cheaper and at the same time enormously more easily scalable). The idea here is that your application authenticates, then you ask for a URL to a vault that has spare space on it. Then your application "hangs up" (stops talking with that server) and contacts the vault directly. This means there is zero "chatter" between our vaults and that you are talking directly (no hops) to the vault you are storing your data on.
-I have to store the cached token somewhere:
-I have to do date arithmetic, what if my server clock is incorrect,
-if an API call failed, I have to check for an additional error: a invalid token
I don't mind complexity when it is needed, but I do not prefer complexity for no good reason.
That being said, can it really be cached up to a week? I see "at most 24 hours", which means it could be even less than 24 hours, so there's no guarantee. Please see: https://www.backblaze.com/b2/docs/b2_authorize_account.html
I'm about to sign up for the B2 Cloud Storage, just noticed a tiny typo in the "Keep costs down" section on https://www.backblaze.com/b2/cloud-storage.html:
"...the fist 1 GB of downloads per day are free."
S3 can deliver 500 MB/s to a single EC2 node pretty consistently (same region, multiple streams) which keeps me there.
> what colo facilities have max bandwidth to you
Our primary colo is SunGard in Rancho Cordova, California. I believe we are currently provisioned for about 220 Gbits/sec (in this one facility alone). I'm not completely sure what this would top out at if we asked for more, but it is a colocation facility with a bunch of network providers such as Cogent, GTT, Century Link, etc. I kind of expect they can provide anything we ask for?
> what is my likely MB/s at the top-performing location
I have three answers, you can choose one. :-)
1) If you want to download a file once after a very long time of not accessing it (meaning it is not in the "B2 cache"), and with one thread, it must be fetched from the vaults to the "caching layer". Spooling a single file off of the vaults with one thread is relatively slow at about 15 Mbits/sec.
2) If the file is already in the caching layer, then it is fetched from local SSDs already inside the caching servers. Each individual caching server has a 10 Gbit/sec network card so if you only have one thread then you are absolutely limited to 10 Gbit/sec (and realistically the caching servers are not completely idle so a realistic number might be only 3 or 4 Gbit/sec).
3) If you want to fetch many files with many threads, fetch one file at a time with each thread. I'm not sure how many HTTPS threads an EC2 node can handle, maybe 200 safely? If it isn't in the cache then you get 200 * 15 Mbits/sec = 3,000 Mbits/sec = 375 MBytes/sec. If it is coming out the cache even faster?
Hope that helps!
If you use b2_list_file_versions (or any of the b2_list functions) there are checksums included in that list (SHA1).
When you ask for that file list, the results are actually coming out of a large Cassandra cluster (database with many computers and fast SSDs).
Ok, so even if you do not request a file list of any kind, Backblaze itself automatically is always walking over the entire data farm checking every single last file's SHA1, plus checking if the files match the database's SHA1. A full sweep completes in less than a month then begins again.
If any bit error is detected (which happens semi-regularly since we have over 72,000 hard drives and bits get flipped) then we rebuild the files from the other copies (Reed-Solomon encoded across many separate computers in many separate locations in our datacenter).
We love and take care of your data so you don't have to.
The amazon philosophy is quite a bit like the underpants gnomes: 1) grow, 2) ..., 3) profit. Where there are natural monopolies with obvious economies of scale, this is an incredible strategy. But outside of that (retail, for example), it just doesn't work. Economies of scale come coupled with diseconomies of scale, and #2 needs to be an intentional and deliberate approach to managing those diseconomies of scale. If you look at their financials, it is obvious that Amazon retail has had a miserable time managing this...over the last 15 years they have steadily lower inventory turns, steadily increasing logistics costs, availability inconsistency, etc. Anybody who works there now or worked there in the past can see how inefficiently they run things and how efficiency improvements one day are ameliorated by political and speculative decisions the next day.
Combine this with their typical acquisition strategy, as exemplified by the Quidsi approach. Lowball, and when they don't accept, spend money subsidizing your own product to undercut their market and make them more desperate to sell.
The Backblaze approach is genius for taking on Amazon because it inverts the priorities to 1) meticulously manage costs, and then 2) directly engage amazon by competing on price. Backblaze can compete on price because their cost structure is lower than Amazon. Amazon can always subsidize their product, but by doing so Amazon is in the weaker position in the endurance race. Backblaze can ride out the attempts at undercutting them because they have a lower cost structure and prices need to drop a lot before they affect their cash flow safety. It's also a resilient strategy; Amazon can know that's exactly what they're doing and they can't do anything to stop it apart from beating them at their own game of cost management. It's a slow and steady road, but it can work.
Now, if only they would start running more than an S3 competitor :)
But then Backblaze don't have the cost advantage! Amazon uses their profits from S3/EC2 to subsidise all the new AWS services (and feature development for the existing services).
Some things don't have to work on efficiency for a long (years) period of time because growth is just that much more important now, even if it means more work later to make things efficient. Some things just drive efficiency from the very beginning because they just have to be efficient to be worthwhile. Most things straddle the two.
I've been begging the pricing team at Backblaze to drop this price for about a year. I'm just glad it finally percolated through.
As far as we can tell, all the cloud storage providers are gouging their customers on outbound bandwidth prices. I'm sorry we couldn't get this pushed through sooner.
I don't know if any of those banks also offer a similar deal for business accounts.
I think in the not too distant future you'll be able to get a regular (non-prepaid) debit card from them now that they have a unrestricted UK banking license [2].
I previously tried Revolut (https://revolut.com) to avoid fees, and from having to apply for another credit card. Whilst great in theory, and it works fine for in-person purchases abroad, too many online services decline it.
https://www.ovh.com/us/public-cloud/storage/object-storage/
It seems to be more expensive for storage but nearly half the cost for transfer.
EDIT: And Backblaze B2 invented their own API, so no tooling at all.
At first that was true, but now we have a list of 3rd party tools you can use. Check the list out here: https://www.backblaze.com/b2/integrations.html
Here is a sample from that web page: CloudBerry, Rclone (mount B2 as a hard drive on your desktop), Synology (this is a NAS drive), Retrospect, Cantemo, Cubix, Cyberduck, Duplicacy, Duplicity Linux, HashBackup, NyNAS, NeoFinder, Odrive, Qbackup, SmartFTP
OVH is also entirely located in Canada and France so performance between much of the US and their services isn't fantastic.
Also notable is that unlike many of the other cloud providers, OVH doesn't seem to offer free bandwidth between their services. You can't spin up an OVH server to thumbnail a bunch of images for example as far as I can tell.
Or full support for hosting a static website: https://help.backblaze.com/hc/en-us/articles/230383208-Hosti...
Great prices though!
https://aws.amazon.com/glacier/pricing/
GCE Coldline is .007c / GB
I'm thinking about replacing my aging Core 2 Duo laptop running Plex with an attached USB hard drive and BackBlaze with a combination NAS with Gig E and an NVidia Shield. I would use B2 for backups.
I have gigabit internet up and down and a house wired for Gig e throughout.
At some point Arq could even support B2, though the most recent record I could find of this suggests that it's not planned right noW: https://twitter.com/arqbackup/status/662037695879880704?lang...
I really wonder if you'll get the same level of reliability as the leading providers.
> They only have 50 employees
We are larger than that now, but yes, still in that ballpark.
> same level of reliability as the leading providers
How is reliability related to number of salespeople? (That was a joke.)
But seriously, we published the EXACT reliability and the design in our blog post here: https://www.backblaze.com/blog/vault-cloud-storage-architect...
In a nutshell, any one byte of data is spread across 20 different computers in 20 different physical locations in our datacenter through Reed-Solomon encoding. If we lose 3 full computers in 3 separate locations your data is still fine.
We have been doing this for 10 years now, and we take it very seriously, and we have 73,000 hard drives in our datacenter. We are the only company on earth to publish our drive failure rates: https://www.backblaze.com/blog/hard-drive-benchmark-stats-20...