DEV Community

Discussion on: Slim Docker images for your Go application

 
therealkevinard profile image
Kevin Ard

Scratch is great, but it DEFINITELY depends on your workload. I haven't personally built anything that couldn't run in it, but I'm positive there are limits.

  • my rabbit work queues blaze in scratch.
  • pretty sure basic image manipulation would fail.

Such is scratch lol

Thread Thread
 
victoravelar profile image
Victor Avelar

Well I think your arguments are very valid, as I said it is not for all the use cases, still we are using it in prod for heavy load micro services and stream producers/consumers and so far its going surprisingly smooth, now I feel very lucky 😂

Thread Thread
 
therealkevinard profile image
Kevin Ard

Oh, don't get me wrong lol! My scratch-go images... Whoo! I have a single, polymorphic binary that blows my friggin socks off. It's a warehousing pipeline that can produce OR consume billions of records per day from who knows what sources. A damn tank, running on scratch.

Lol but I'd be nervous as crap deploying something that needs imagemagick via a scratch build 🤣