Hello, new and have some questions - Bandwidth and Sharing
-
Awesome yeah I was just talking in IRC about this problem, my idea is use a PHP or some other web scripting language on the web server to automate pulling a file from Sia and send it to end user, either with some kind of download manager built on web server language (like php), or something like that.
in example
Owner of files has web domain "mydomain.com", wants to distribute file MyVideo.mpgTo use sia's file system the script would look like this in the URL:
www.mydomain.com/phpsiaclient.php?=9898781793193093131893938.sia
using the .sia file argument as its variable to use with SIA somehow. I am not great at programming though, maybe you guys could help. Would definitely improve the value of the coin if all of a websites resources besides the html and server side scripts could be stored here. Would save many company's overall millions of dollars at the current rate of SC.
Not to mention this is the only way for a company like netflix to incorporate this technology, without integrating sia itself into its software.
-
I'd do this in Java ;). In the servlet container (java web app) there is an object called HttpServletResponse which gets passed to your code when a user makes a request. You can pipe raw binary data directly into this object and the webserver (like Tomcat) will take care of delivering it to the client.
Meanwhile in the background we can use this code: http://stackoverflow.com/questions/557844/java-io-implementation-of-unix-linux-tail-f to read the file and sending it to the response. You also need to set some HTTP headers like content type and length, that might be the most tricky part actually since Sia doesn't make is available through the API: https://github.com/NebulousLabs/Sia/blob/master/doc/API.md#renterfileslist
-
@in-cred-u-lous said:
- No, you are not charged for bandwidth. You pay only for storage space on the hosts.
Please note that this is only going to be true for the beta. When 1.0 hits, users will be charged for bandwidth. Hosts will set the price, just like with uploading, and the renter will intelligently select the cheapest/fastest hosts, just like with uploading. When this happens, there will not be an easy way to pay for end-users bandwidth, but if you make a special client that sends around transaction information, you can get it to work.
I think serving files from Sia over HTTP is doable at this point.
I think so too. Especially if we add some extra API controls so that you can support streaming.
-
Ok, so if the webpage was able to serve the files, and interact with your daemon, then your daemon would use your account to pay bandwidth though.
Does this also mean that farmers may earn more, due to bandwidth being charged for as well?
-
I just wanted to say that even though StorJ and others are still in the making, I have tried HDD mining with Burst and it sucks. Wasting HDD space rather than using it somehow was a bad move on their part.
I know 1 SC only costs 4 satoshi right now, but I really do have a feeling that when the first large company trusts Sia's network enough to at least use it to backup a data center, the price is going to jump dramatically because all of our combined HDD space will be used pretty quick.
I just wanted to say that I love this project and so far has proven to be the absolute most useful coin I have found so far :D Good work!
-
Ok, we're moving a bit off topic.... But, some things you ought to know.
Sia miners currently produce ~$40 million Siacoins each day. Most miners probably hold on to their coins at present, because of the low price and the fact there simply isn't much demand for them. So, once SC goes up I would get ready for a massive dump of SC on Polo. I think this will put a lid on any sudden jumps in Siacoin price.
I agree with your future projections of Sia. Storage capacity is of course a concern for Sia to grow, but it will come in hand with increase uploads since I project most new users to both want to host files, as well as use Sia to securely keep a copy of their own files.
There is currently a cap on 500 (or 1000?) SC per/gb, hardcoded into Sia. So, even if nearly all hosts have been exhausted, you will never pay more than that. So, your assumption (if I understand you correctly) that price will increase with storage demand (and supply) may be incorrect. I personally think this is the wrong way to go, and think that the storage market should be free of any such limits.
Critical to Sia success in the short term is user experience and automatic renewals (which will come in 0.5.0, due soon I think).
Siacoins might not get any cheaper than what they are now, and once demand picks up will probably be valued well above today's price. But as always, don't put all your eggs in one basked and all that :-)
-
Oh I wasn't even mentioning that it was profitable to sell the HDD space, but my 3 PCs are all crypto-computers.
I mine my GPUs to get Ether, I mine 25% cpu on Axiom (needing new coin to mine, maybe gridcoin), I was mining BURST with my HDD space, but now it is 50% of shared HDD space goes to StorJ beta, and 50% is now here. I am also looking for ways to utilize ram to mine(? somehow), but for now I sell basic 512MB Ram Minecraft Server Hosting to utilize the rest of my PCs, and it still plays League of Legends and stuff that I do without any lag XD.
But that is definitely off-topic. My point wasn't that it is profitable to mine SC, what I'm saying is that from a business perspective, if I could host my website's files using Sia's network instead of private amazon cloud, I would (at sia coins current 4 satoshi rate) save 99% on costs, which at the moment are mostly due to bandwidth, not file size.
Since then though I learned that Sia Network will charge SC for bandwidth as another part of the Hosting tab's options after Beta. This will change the dynamic, but I feel like it will still be about 5% the cost of Amazon's cloud IF and only if you can access sia's filesystem via HTTP, which I don't think would be too hard, but haven't looked at the source and wouldn't understand most of it if I did XD
It would be any online businesses best friend. Cheaper hosting than registering a domain name is all I mean :P
-
Does the list of your files dissapear every time you reload the wallet?
-
No, that is not supposed to happen. What do you mean by 'reloading' the wallet? Opening and closing the Sia UI? Locking/unlocking the wallet?
-
@ryancstl23 said:
Does the list of your files dissapear every time you reload the wallet?
Definitely not, unless you've opened Sia from a different folder or have deleted some things. (or maybe you found a bug)
-
Ok will check it out further. I closed the Sia GUI, but it seems the daemon is one in the same, and when I re-opened, my wallet was locked (expected), but my files list was cleared, will try a few things to see about it.
-
Is it possible that you are not giving the program enough time to load? On slower computers (especially HDD computers), Sia can take multiple minutes to load. Before it has finished loading, the UI will be blank and will not show any files. (we are reducing load times as one of the primary goals of 0.5.0)
-
Yeah my PC has an i5 4670k and 16gb of ram, it never loaded overnight or when reloading the app. But anyways I'm trying to get the .sia file so I can store the link to my backups tangibly on my desktop but all I can get is the Hashed code for it, and that text box won't close.
I may be using an old version XP, I'm on windows and didn't compile it myself.
-
Can you post a screenshot?
The version number on the 'about' page should read '0.4.8'.
It's possible that one of the files corrupted, I was having trouble with that earlier (though I run unstable versions of our software)
-
I cant add photos here, but the error says Error 500 Internal Server Error Upload Failed: Rename renter*.... The process cannot .... And it doesnt show it all in the gui client. I think thats why my SIA hash code won't bring my files back after reloading the wallet, and also why it isnt there when I reload anyway.
Do I need to forward some ports? I'm being charged for the uploads..
-
You definitely don't need to forward ports to upload. This is something that @nemo can help you with, I'll make sure he sees this thread
-
Hard to diagnose without the full error message -- the next release should log these error messages in their entirety somewhere. My best guess is that the Rename operation is failing when the .sia files is saved. Check your renter folder for .sia files.