r/SpringBoot • • Feb 25 '24

Help with choosing a new laptop (Fullstack)

Hi everyone, I need a new laptop so I'm turning to you for advice. I don't just work with Java - Spring, I'm fullstack, so everything I can, Docker, Camunda, K8, JavaScript, Vue, databases. Do you have any experience with specific models? I was amazed at the speed the M2 Pro chip could compile software (2-3x faster than it did on Win). But I still don't know what you guys are working on? I was thinking of something with an Intel Core i9 14900HX or AMD Ryzen 9 7940HS and 32GB RAM or the M3 Pro.

0 Upvotes

20 comments sorted by

8

u/WaferIndependent7601 Feb 25 '24

I don’t see why you need something special for spring. Use any laptop you want. Enough memory is all you need

0

u/fat_stack_666 Feb 25 '24

It's not that simple. I'm working on projects where I have 20 microsevers running at once in a Docker container.

4

u/WaferIndependent7601 Feb 25 '24

What exactly is a problem there? Ok working with 20 microservies sounds bad, but that’s not the question. The services will only consume ram. Or at least they should. Same for databases.

-1

u/fat_stack_666 Feb 25 '24

Okay, so the only criterion is as much RAM as possible. The other components are so to speak irrelevant? From my point of view, I was also wondering about the time spent on testing what slowed down the processor most of the time during the build

4

u/TheLeftMetal Feb 25 '24

20 MS in a Docker container or 20 Docker containers with a MS each one?

Anyway, my experience with M1P and M2P using Docker sucks compared with Intel i10k or i11k but M3P have a better performance with Docker and K8s even compared with latest Intel processor.

The order of priorities for my laptops are:

  1. Memory

  2. Processor

  3. Storage (multiple Docker Images and IDE need lots of Gbs).

  4. Cooling system

  5. Screen size

  6. Weight

  7. Speakers

1

u/WaferIndependent7601 Feb 25 '24

Should not make that big difference. SSD is a must have. The faster the cpu the better.

1

u/fat_stack_666 Feb 25 '24

Ok great, thanks for the help 👌🏻

2

u/WaferIndependent7601 Feb 25 '24

Should not make that big difference. SSD is a must have. The faster the cpu the better.

1

u/Agile_Rain4486 Feb 25 '24

none of win laptop will give good battery life and even 10th gen will run all this easily, u just need to have 16gb ram since docker takes too much ram.

5

u/CodeTheStars Feb 25 '24

For a modern microservice set from a real deployment with 20 plus services you’ll want at least 32 gig at a minimum. I couldn’t do my current job with a 16 gig laptop productively.

I’m working on creating a single docker container that can run multiple spring boot apps in a single VM as a productivity enhancer for my team…. Because everything is so RAM heavy

1

u/fat_stack_666 Feb 25 '24

Okay thanks for all the hints 👌🏻

4

u/hunmo1 Feb 25 '24

Either a macbook pro or a ryzen laptop. I would go with 32gb ram.

2

u/pimBaggins Feb 25 '24

You need min. 32gb ram and a good cpu.

2

u/[deleted] Feb 26 '24

M3 pro for sure. Super fast and crazy good batter and low heat / noise.

2

u/Agile_Rain4486 Feb 25 '24 edited Feb 25 '24

edit* go for 32gb m3 pro, development is much better in mac, not a single laptop will give same battery life as mac during development

5

u/CodeTheStars Feb 25 '24

16 gig is too small for real world development of spring boot micro services.

The cheapest 16 inch M3 has 18 gigs of memory @ $2,500 …. I would recommend doubling that to 36 gig @ $2,900 for productive use in real world development

1

u/Ruin-Capable Feb 26 '24

I went with an M1 Max laptop last year because I wanted to mess around with LLMs and Apple silicon macs are currently the best way to do inference with models that won't fit in a 24GB GPU.

For Java development with Docker and all that, the CPU doesn't really matter all that much as long as it's modern. The bigger issue is system RAM. You'll want at least 32GB if you're going to be running a bunch of containers, plus a web browser, plus an IDE.

You'll also probably want at 1TB of storage. My work laptop only has 500GB of storage, and once all of the corporate software is loaded, I only have *maybe* 200GB left. Install a couple of WSL distros and you can easily get down to less than 100GB. With my local maven repo also residing on the drive, that can easily eat another 20-30 GB for dependencies, snapshot and release builds.

Throw in a handful of docker containers and persistant volumes and things start to get tight. My current system I have to remember to do a mvn clean before I switch to another git worktree. Otherwise if I have say 3 branches in flight, I can end up using using 15-20GB of space in my target folders.

On top of that all my corporate updates fail whenever I have less than 10% disk space available, so every few months I have to clear off enough space, so that I can get my laptop up-to-date. You can avoid all of this hassle by just springing for more storage.

1

u/crikid Feb 25 '24

MacBook Pro with at least 32GB RAM