Where do you host your Go web applications?

blov · · 389 次点击    
这是一个分享于 的资源,其中的信息可能已经有所发展或是发生改变。
<p>Where and how do you host your Go projects?</p> <p>Also is the application production, a personal project or just testing.</p> <p>Curious to see the different ways companies and people deploy and host their apps.</p> <hr/>**评论:**<br/><br/>ngrilly: <pre><p>Google Cloud Compute Engine (production)</p> <p>Digital Ocean (personal project)</p></pre>beeker1121: <pre><p>Google Compute Engine is awesome, very fast and easy to use with great options. Also I think I read somewhere that it&#39;s cheaper than Google App Engine, haven&#39;t checked this though.</p></pre>saxykeyz: <pre><p>we use to use heroku in production but since then we switched to using digital ocean using caddy as our server</p></pre>Jamo008: <pre><ul> <li>grandfathered heroku apps (no enforced sleep)</li> <li>vultr (DO doesn&#39;t have Australian servers)</li> <li>raspberry pi at home</li> </ul></pre>anacrolix: <pre><p>Vultr ftw</p></pre>ElChapinator: <pre><p>Can you elaborate note on the Pi?</p></pre>Jamo008: <pre><p>My Pi running latest Raspberrian has my home automation server (written in Go) which exposes an HTTPS API (caddy auto-https). This and other (<a href="https://github.com/jpillora/serve" rel="nofollow">serve</a>, <a href="https://github.com/yudai/gotty" rel="nofollow">gotty</a>, <a href="https://github.com/jpillora/cloud-torrent" rel="nofollow">cloud-torrent</a>) processes managed by systemd.</p></pre>FrenchDonkey: <pre><p>Google App Engine, just make sure that you are aware of the limitations ie: urlfetch etc..</p></pre>FIuffyRabbit: <pre><p>I use a $5 digital ocean server. To deploy, I just push to git and pull on it and build. I used to have a homemade auto deploy but it had too many points of failure. </p></pre>mcouturier: <pre><p>Same but I cross-compile on my machine, push the binary then reload the service (all with ansible)...</p></pre>wot-teh-phuck: <pre><p>Yeah, I have always think about the need to &#34;pull&#34; a repo on your production/deployment box when Go offers cross-compilation out-of-the-box.</p></pre>GazZy422: <pre><p>Use a free account on Openshift. Just for testing and personal projects (few bots and such)</p></pre>kaeshiwaza: <pre><p>Dedicated server with Debian for production and personal projects as a freelancer. I do this since decades and wonder if on the cloud I could gain something ?</p></pre>Fennhella: <pre><p>Depends, if you really need high availability and reduced amount of ops the cloud can give you it pretty easy (Hosted services like DBs, load balancers, Object store etc) without configuring it yourself (Multi-datacentre, 24/7 monitoring etc).</p> <p>Also if your workload has spikes or is growing pretty fast you can automatically increase the number of servers up and down and be billed by the hour or even minute depending on cloud provider.</p> <p>Though, one of the many good things about Go is that it has really good performance so 1 box can get you pretty far.</p> <p>If things are going smoothly as it is I would say you no need to change and reevaluate if you ever encounter issues where a cloud provider could help.</p></pre>HarveyKandola: <pre><p>We use AWS:</p> <ul> <li>Docker images contain Go binaries and other non-code dependencies</li> <li>Docker images on private Docker Registry</li> <li>EC2 CloudInit pulls down latest Docker image and runs it</li> </ul> <p>App behind AWS load balancer.</p></pre>kardianos: <pre><p>ibm bluemix</p></pre>metamatic: <pre><p>For anyone interested, here&#39;s the <a href="https://console.ng.bluemix.net/pricing/" rel="nofollow">Bluemix pricing page</a> including info about the free tier. My <a href="https://github.com/lpar/bluemix-golang-hello-world" rel="nofollow">hello world on Bluemix</a> project is a bit out of date, but the links in the README are still useful.</p></pre>romantsegelskyi: <pre><p>Digital Ocean + Wercker for test and deploy (personal project) Wercker has a great guide about deployment to Digital Ocean that will help you set everything up quickly</p></pre>mvitorino: <pre><p>Google App Engine. Most of persomi.com production services (<a href="http://www.persomi.com" rel="nofollow">www.persomi.com</a> is Wordpress on App Engine but not Go obviously).</p></pre>kd7nyq: <pre><p>Because of the nitpicking that most of my projects require, I prefer to use VPS hosts. I also have a fairly controlling attitude about software systems, so if I can&#39;t replicate the environment in-house, I&#39;m less likely to use it. I <em>hate</em> surprises. </p> <p>To answer your question more specifically, though... As a freelancer, I hosted on Linode with CentOS, using upstart at the time. Most of my employers have either hosted in-house or on Amazon.</p></pre>bakunin: <pre><blockquote> <p>if I can&#39;t replicate the environment in-house, I&#39;m less likely to use it</p> </blockquote> <p>Amen to that.</p> <p>While that magic system that promise you a life on easy street <em>might</em> work fine forever, you are susceptible to lock-in creep over time. Also, you can never be sure the vendor won&#39;t introduce breaking changes that require a lot of unplanned work, or perhaps even a change of subscription.</p></pre>SeerUD: <pre><p>I&#39;ve got a few VPS instances at Digital Ocean which I use for more personal things, and a dedicated server with OVH that I drop all of my major projects on.</p> <p>I usually use Jenkins to deploy, but am currently evaluating Drone as a potential alternative. The deployment process I use is centred heavily around Docker, and that doesn&#39;t really work as nicely with Jenkins as it does with Drone.</p> <p>I&#39;ve been considering moving my stuff to some less powerful machines, but at the moment I&#39;m also hosting some Java and Scala apps that are a bit more resource hungry. Hence the dedicated server (so I can abuse the 64GB of RAM... that I wouldn&#39;t need if everything was Go!)</p></pre>rek2gnulinux: <pre><p>digitalocean</p></pre>gempir: <pre><p>Digital ocean for smaller stuff and if I need more power I have been trying out scaleway. They are extremely cheap but their UI is good and I haven&#39;t had any issues with their servers</p></pre>kingmanaz: <pre><blockquote> <p>Where and how do you host your Go projects?</p> </blockquote> <p>On *nix: Behind a reverse proxy of some sort. Look up &#34;pound&#34;.</p> <p>On Windows and IIS: Using the &#34;URL Rewrite&#34; module.</p> <p>In either case: Open up an unused port, say 8080, and use the above solutions to transparently route incoming traffic from port 80/443 to the port allocated to the Go service.</p> <blockquote> <p>Also is the application production, a personal project or just testing.</p> </blockquote> <p>Internal-facing and in production.</p></pre>25600mah: <pre><blockquote> <p>On *nix: Behind a reverse proxy of some sort. Look up &#34;pound&#34;.</p> </blockquote> <p>It&#39;s been a while since I used Pound, but when I did it required frequent restarts due to memory leaks. This was on a somewhat high traffic site, averaging ~1000rps, peaking around ~1700.</p> <p>I made the move to nginx for reverse proxying/load balancing/ssl terminating a few years ago, and I couldn&#39;t be happier.</p></pre>trumae: <pre><p>We use Heroku and Virtual machines on Microsoft Azure.</p></pre>eyecikjou567: <pre><p>I run a Gogs Server behind a Nginx Proxy on AWS.</p> <p>The Nginx is currently squished into the Gogs Server, eventually it&#39;ll handle all traffic and proxy all connections (TCP proxy ftw) to their respective service.</p> <p>One application is production, hosted on the Gogs but deployed on a docker engine elsewhere (basically out-of-my-hands deployment).</p> <p>The rest is mostly personal projects (currently a Reddit API Toolset) or just messing with go.</p></pre>geordano: <pre><p>linode</p> <p>production</p></pre>DeedleFake: <pre><p>Docker on Digital Ocean. I stick a Dockerfile in <a href="https://www.github.com/DeedleFake/ps2avglogin" rel="nofollow">the project repo</a>, and then I just have to pull and run <code>docker build</code>, followed by <code>docker run</code>, on <a href="" rel="nofollow">the host</a>.</p> <p>If you use a referral link, such as <a href="https://m.do.co/c/034b92b8fda5" rel="nofollow">mine</a>, when making an account, then you&#39;ll get $10 of credit to start with, which is enough to run the cheapest droplet for 2 months. If you spend $25, then I&#39;ll also get $25 of credit.</p></pre>Mteigers: <pre><p>AWS</p></pre>pcj2bs: <pre><p>At work (VividCortex), we host everything on AWS.</p> <p>Personal projects:<br/> - Digital Ocean<br/> - Vultr<br/> - AWS<br/> - BeagleBone Black (for a while, back when I had a colo)</p></pre>stroborobo: <pre><p>We&#39;ve got an actual server here running Debian Jessie, no fancy cloud service. It&#39;s primarily serving PHP sites and stuff, but hosts three containers for Go apps as well. I wish we had AWS or something, so I don&#39;t have to fear it dying everyday, but time and money are rare these days.</p> <p>For personal stuff I&#39;m running a FreeBSD host, but that&#39;s going to change soon. Migrating to a BananaPi, not sure yet which way to go there though.</p></pre>DavidYangNo: <pre><p>you can deploy use nginx</p></pre>

入群交流(和以上内容无关):加入Go大咖交流群,或添加微信:liuxiaoyan-s 备注:入群;或加QQ群:692541889

389 次点击  
加入收藏 微博
添加一条新回复 (您需要 登录 后才能回复 没有账号 ?)
  • 请尽量让自己的回复能够对别人有帮助
  • 支持 Markdown 格式, **粗体**、~~删除线~~、`单行代码`
  • 支持 @ 本站用户;支持表情(输入 : 提示),见 Emoji cheat sheet
  • 图片支持拖拽、截图粘贴等方式上传