<p>Hi
I am planning to build a go backend for my next Android app. I was hoping if I could get any suggestions based to your previous experiences with the same.</p>
<p>Also I was exploring some PaaS services such as Gae and Heroku, and found the prices are too much for my budget. Also they impose several restrictions on the code base.
Is there any service where I can build a Rest API which is secure, scalable and portable and free for at least the time the app gets profitable.</p>
<p>Thanks in advance.</p>
<hr/>**评论:**<br/><br/>dazzford: <pre><p>The AWS Free tier provides pretty much everything you need to run a few services.</p>
<p>Depending on the load your app will generate, you could have 1000s of users before you have to pay for anything.</p>
<p>Additionally you can follow what these guys did <a href="http://highscalability.com/blog/2015/12/7/the-serverless-start-up-down-with-servers.html" rel="nofollow">here</a> and go super low cost without having to deal with EC2 instances at all.</p></pre>condanky: <pre><p>I just finished making a golang backend for use in IOS and Android. One thing I did find trouble with was linking my .aar file with the android project because it couldn't bind correctly. I was using Android SDK 23 with Android Studio 1.5. I assume you would be using this with golang 1.5. Anyways to fix this I had to download the master branch from golang, build the downloaded master branch then I had to create the .aar to stop the errors. Other than that it was super easy!</p></pre>ipsq: <pre><p>Code your REST API like you normally would and deploy it using Docker! Put a load balancer in front and put it on a cloud service (like AWS or Digital Ocean)</p></pre>--Mister--j: <pre><p>Thanks.. But what about the costs. </p></pre>gergo254: <pre><p>You won't find (a good and) free service.
DigitalOcean is very cheap. If you'd make profit later, you have to invest some money into it.</p></pre>dazzford: <pre><p>This is not true at all.</p>
<p>The 1 year free tier for AWS (for new accounts) is more than enough to run a few go services. Along with the free RDS tier, you have all the DB backing you need.</p></pre>--Mister--j: <pre><p>Will monetizing just using ads cover up the costs. Any idea?</p></pre>Kipzy: <pre><p>if you are a student, digital ocean offers 50$</p></pre>raerius: <pre><p>DigitalOcean have droplets starting at $5/month with 1TB of transfer included. If this is outside of your budget, I'm not sure what you were expecting.</p></pre>calibrated_caliper: <pre><p>Heroku has a free usage tier. It works fine for REST backends. I deployed a golang API to Heroku a few months ago and I have no complaints </p></pre>--Mister--j: <pre><p>What about the times when the service is down. I mean they say dyno must sleep 6h in a day. </p></pre>1Gijs: <pre><p>It is shutdown automatically after 30 min without activities and restarted (short delay, but workable I think) if a request arrives. If it was active for more the 18 hours it will be shutdown and a 503 (out of my head) will be served. For a small service this is adequate I think. Cannot think of anything better and free.</p>
<p>AWS first year free tier (as mentioned before) is a very good (price wise) alternative. But 'only' 1 year.</p>
<p>Also Digital Ocean $5 VM (already mentioned). I have several low traffic Go websites running on it (512Mb) and still more then 50% memory free. If you cannot invest $5 per month then you should reconsider your project ? And it is also very easy to find a $10 coupon code online to get you started...</p></pre>calibrated_caliper: <pre><p>It's based on requests. If you're expecting high volumes of traffic, you will not find a free service. </p></pre>peterhellberg: <pre><p>You don’t expect any income from selling the mobile apps?</p>
<p>You can get pretty far with a $5-10/mo droplet on DO.</p>
<p>I’m building a mobile backend (Android and iOS) for my current client, it will run fine on a few Heroku dynos. You have to specify what kind of workload you expect in order for us to give any reasonable estimates.</p>
<p>Did you consider using a BaaS instead?</p></pre>
这是一个分享于 的资源,其中的信息可能已经有所发展或是发生改变。
入群交流(和以上内容无关):加入Go大咖交流群,或添加微信:liuxiaoyan-s 备注:入群;或加QQ群:692541889
- 请尽量让自己的回复能够对别人有帮助
- 支持 Markdown 格式, **粗体**、~~删除线~~、
`单行代码`
- 支持 @ 本站用户;支持表情(输入 : 提示),见 Emoji cheat sheet
- 图片支持拖拽、截图粘贴等方式上传