I need a server

Soldato
Joined
2 Oct 2004
Posts
4,362
Location
N.W London
Hey there,

I have developed an android app that is connected to a database.

I need a server to host the files the "app" accesses.

In terms of storage I need around 15-20gb and bandwidth, well its pretty new so need it to be flexible if possible.

Can anyone advise me on which hosting company I should use?

Any recommendations?

Thanks
 
Soldato
OP
Joined
2 Oct 2004
Posts
4,362
Location
N.W London
hey guys,

thanks for your recommendation.

the android app I am developing is for a charity so I need to keep hosting costs to a minimum if possible...

I will have around 11gig of data that I need to store on the server to access it 24/7 not every minute of the day mind you....

I have created a database that contains the names and weblinks of the files I am hosting using phpyMyAdmin that my app points to, in order to retrieve this data.

Will all servers work with phpMyAdmin?

Will my android app be hosted on the server itself? or is that what I pay google $25 dollars for, by which I mean when I pay them I release the APK on playstore??

Its the first time I have done this so need some clarity on hosting and on how google play works...

What I was thinking, dont know if its possible, is if I were to upload the files to a free cloud storage server and retrieve from there wouldnt my app just work the same?

Thanks for your help so far...

p.s. how much bandwidth should I aim for? I will be streaming mp3s...I just dont know how many users I will get though...whats "safe" or generally good idea for "starters" and what happens if I exceed this amount, other then the app going down? thankx
 
Last edited:
Soldato
OP
Joined
2 Oct 2004
Posts
4,362
Location
N.W London
Thanks for all replies recieved, most grateful for your time and explanations, just need a weeeee bit more help pls:

PHPMyAdmin is just a GUI/web frontend for MySQL; so you're just after hosting that supports MySQL (ie - most linux packages).

So on the cloud server I rent, I will place MySQL database plus the 11gb flat files I have?

The app's APK is handled by Google (or what ever app store you go for); the remote backend data the app needs is hosted and your responsibility.

Does it work like this:

MyPhone --> GoogleServer (for apk) --> MyCloudServer(stores MySQL + flatfiles)

So when my app is eventually downloadable, when the listview within it is generated, it uses the "names" field from MySQL database, to display a list of names, when user clicks on the "name" it retrieves the mp3 file from MySQL database.....does this all occur between my APK on GoogleServer and MyCloudServer?

Hope that makes sense...

Not to sound like an a******e but obviously this should have all been sorted (backend providers, specs, costings, contingencies especially how that affects costs) during the specification/proposal stage of the project as it helps with project development (especially when the budget is an issue) but it also saves your bacon from voidable 'client shock' (surprising the client with bad news, usually money/budget/costs).

its all happening for free for them...Its been a steep learning curve what with functionality and now I am getting close to the end, lessons for next time for sure...

But as mentioned, look at "cloud" based hosting (AWS, Azure, Digital Ocean - can't say i've used them but they look reasonable, Google Apps/Hosting - again never used it but might be worth looking at) over dedicated hardware for flexibility.

I will research these suggestions

Thank you so much


p.s. can you clarify something else?

Whilst developing, I switch on XAMPP on my machine and the 11gb of mp3s are hosted on another external server...

So when I debug I plug my phone into the usb port and run my application from eclipse, which installs my APK on my phone. My WIFI on my phone is on.

The app opens up fine, the listview is generated and I can play mp3 files.

However if I leave my house and open my app up on my mobile phone, it opens fine, but the listview is not generated.

Is it because I am not connected to my WIFI outside so am not on the same server as localhost therefore cannot generate listview...

Hope that makes sense...

Just intrigued - thank you so much
 
Soldato
OP
Joined
2 Oct 2004
Posts
4,362
Location
N.W London
p.s. which one of these plans do you recommend for a starter app?

https://www.digitalocean.com/pricing/

I know its a never ending question but the aim of my app is to stream mp3 to a "specialist" audience.

If I monitor bandwidth I can always increase, cant I?

Each file varies in size, the largest being 200mb and the smallest being 50mb...

If for example I rented a cloud server with 2tb bandwidth does this really me if someone listened to 10x 200mb files the bandwidth is taken for that month?

I expect the bandwidth to be high on start and then to decrease at times goes by, so I assume anyway...

Please clarify if my understanding is correct?

Thank you so much
 
Last edited:
Soldato
OP
Joined
2 Oct 2004
Posts
4,362
Location
N.W London
I think you're mistaken 2TB for 2GB.
10 x 200mb would be around 2 GB of bandwidth.

So with 2TB I guess you'd get around 10,000 'listens'

it does say 2tb bandwidth on their site, check out below link in my post...

oh really that many? so it doesnt matter on the size of file, its more the bitrate?

how did you reach 10000 listens?
 
Soldato
OP
Joined
2 Oct 2004
Posts
4,362
Location
N.W London
Ahh I see now (so I think)

Thank you so much for your help

As I use XAMPP , phpmyadmin as front end GUI for MySql were would my database be buried in XAMPP, in which folder in XAMPP??

Can I just copy and paste it onto my cloud server?

I use JSON to parse the data so I believe its secure as I use PHP to connect to my database you have to with android, you cannot connect directly to MySQL

Thanks a lot be grateful for the answers to the above

Cheers
 
Soldato
OP
Joined
2 Oct 2004
Posts
4,362
Location
N.W London
Awesome thank you so much

Re: exporting database from XAMPP and importing onto my server, I take it to do this my rented server should support SQL so I can import my database onto it probably using its control panel or something similar??

Thanks again for all your help
 
Soldato
OP
Joined
2 Oct 2004
Posts
4,362
Location
N.W London
thanks for your reply

I went into PhpMyAdmin and exported my database as SQL file. Its now sitting on my desktop.

So presumably I have to import that SQL file on my rented server either using PhpMyAdmin or whatever they use?

So my android app will then connect to that server? because currently my app points to the XAMPP localhost IP address. So by changing the IP address in my android app it will connect to my database and then populate my listview?

I believe thats right???

cheers mate so appreciate your help thanks a lot
 
Last edited:
Soldato
OP
Joined
2 Oct 2004
Posts
4,362
Location
N.W London
thank you so very much

By the way it's worth thinking about adding some form of analytics to the app and backend (especially MP3/audio data access), as it'll give you a better understanding of how the app and data is being used.

Thanks for the heads up however I believe when you pay google $25 they provide this service already....

google stats

on top the basic stats they also provide google integrated analytics

google integrated analytics

I hope to get to that point soon,

thanks for all your help, let you know if I have any more questions..

thank you so much
 
Back
Top Bottom