News for hackers. Stuff that matters.
Re:Native Mac APIs for Go by tectonic on Thursday February 04, 2021 @12:11PM (#26027371)
Most of Jeff Lindsay's stuff is worth checking out. He also started dokku and coined the term webhook.
Re:Native Mac APIs for Go by 52-6F-62 on Thursday February 04, 2021 @12:23PM (#26027498)
We use Dokku on the regular for a number of small services at work. It was a little strange being new to it, but it's been great. Kudos to him.
Re:Native Mac APIs for Go by asaddhamani on Thursday February 04, 2021 @12:40PM (#26027713)
I know it's kind of going against the idea of Dokku, but can it be made to scale across servers? I love the simplicity of Heroku but the cost can be a barrier for some use cases. But k8s is too complicated. Anything like Dokku that scales horizontally?
Re:Native Mac APIs for Go by cweagans on Thursday February 04, 2021 @01:07PM (#26028038)
The scheduler in Dokku is pluggable. You can use Kubernetes or Nomad: http://dokku.viewdocs.io/dokku/advanced-usage/schedulers/alt...
Re:Native Mac APIs for Go by ecnahc515 on Thursday February 04, 2021 @09:01PM (#26032199)
How did I not know that? How "prod" ready is Dokku if we just ran it on top of k8s?
Re:Native Mac APIs for Go by cweagans on Thursday February 04, 2021 @09:21PM (#26032325)
What's another layer of abstraction on top of _Kubernetes_. #yolo

I haven't actually used k8s-backed Dokku, but I imagine that it would be worth at least experimenting with if you're already committed to running stuff on k8s.

Re:Native Mac APIs for Go by joshmanders on Thursday February 04, 2021 @03:04PM (#26029171)
If you're looking for a cost-effective alternative to Heroku, might I suggest signing up for my product https://primcloud.com. We're pushing towards public availability by end of February early March at the absolute latest.

I'm a former lover of Heroku and maintainer of Dokku.

Re:Native Mac APIs for Go by phamilton on Thursday February 04, 2021 @01:31PM (#26028306)
If I were avoiding heroku because of cost and had a need to scale horizontally, I'd use Fargate with spot instances.

Manage it with CDK or terraform. As long as you have enough containers running, spot ends up being a non issue.

Re:Native Mac APIs for Go by qbasic_forever on Thursday February 04, 2021 @03:23PM (#26029374)
It's even simpler now, lambda supports running docker images as of a couple months ago: https://aws.amazon.com/blogs/aws/new-for-aws-lambda-containe...
Re:Native Mac APIs for Go by jamesmishra on Thursday February 04, 2021 @03:58PM (#26029677)
I also recommend this path, but I found it really hard to write all of the required Terraform for the VPC, security groups, load balancers, and Fargate configuration.

So I put together an open-source Terraform super-module to automatically set all of that up in a few lines of code.

https://provose.com/

Re:Native Mac APIs for Go by phamilton on Friday February 05, 2021 @01:37PM (#26039665)
CDK has `ecs-patterns` https://github.com/aws/aws-cdk/tree/master/packages/%40aws-c...

I'm a pretty big fan of CDK if you are willing to make cloudformation and AWS your lingua franca. I use it for most of my personal projects, but professionally bias towards terraform.

Re:Native Mac APIs for Go by asaddhamani on Monday February 08, 2021 @02:51AM (#26061850)
My application is actually pretty bandwidth heavy, which removes AWS and other major cloud operators from the equation. But I’ll keep it in mind for non bandwidth intensive workloads.
Re:Native Mac APIs for Go by jtsiskin on Thursday February 04, 2021 @03:58PM (#26029687)
This is the same concern I had. I settled on Caprover (https://caprover.com/), seems to exactly fit the bill.
Re:Native Mac APIs for Go by ipmb on Thursday February 04, 2021 @02:54PM (#26029075)
shameless plug... you might be interested in https://apppack.io. I built it for very similar reasons.
Re:Native Mac APIs for Go by turtlebits on Thursday February 04, 2021 @12:44PM (#26027769)
flynn.io was the product I used found when I wanted a little better scalability than Dokku. This was a few years ago when I tried it, so unsure of the current landscape.
Re:Native Mac APIs for Go by asaddhamani on Thursday February 04, 2021 @12:59PM (#26027935)
I had tried flynn in the past (a few years ago just as you) but couldn't get it to work, but that was with Meteor which has very specific deployment requirements. I'll try out flynn when I need to scale beyond Dokku.
Re:Native Mac APIs for Go by goliatone on Thursday February 04, 2021 @01:08PM (#26028051)
For my hobby servers I have tried dokku, Flynn and countless other similar solutions. Settled with caprover[1] and very happy with it

[1] https://caprover.com

Re:Native Mac APIs for Go by qbasic_forever on Thursday February 04, 2021 @03:21PM (#26029347)
Look at a hosted knative solution, like Google Cloud run or one of many others: https://knative.dev/docs/knative-offerings/ You don't have to know or care about anything Kubernetes with it, but you get ease of just throwing containers at something and having it run them for web-scenarios. They scale up and down to zero so you aren't paying a cost when nothing is happening. And when/if you need it, you have the full power of a kubernetes cluster at your fingertips too.

AWS lambda can run plain old docker containers now too. Check out something like the serverless framework to make it easy to define a bunch of web services or APIs and deploy to lambda, knative, etc.

Re:Native Mac APIs for Go by dimitrios1 on Thursday February 04, 2021 @12:24PM (#26027519)
also wrote registrator which helped pioneer the technique of service discovery we see in so many cloud tools and platforms today.
Re:Native Mac APIs for Go by progrium on Thursday February 04, 2021 @01:38PM (#26028378)
also helped design docker (the good parts) and a bunch of other stuff