• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Jeanne Boyarsky
  • Junilu Lacar
  • Henry Wong
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Frits Walraven
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • salvin francis
  • fred rosenberger

Java "Spark" vs. Spring-Boot?

 
Bartender
Posts: 1752
17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm super excited about the new micro-services idea. I can create services easily, put them in a container like Docker and viola. I have cloud services - at least that's what I know/believe so far.

Pretty cool.

My question is whether to use the heavy-weight Spring Boot or the ultra light Spark framework.

In the end, it probably doesn't matter than much, but I was interested to see if people used Spark and liked it or if spring boot was just too compelling.

Externalizing the REST web services in, for example, a Docker container, will free up up to use any front end I want. That's cool.

Thanks in advance.

- mike
 
Marshal
Posts: 15630
264
Mac Android IntelliJ IDE Eclipse IDE Spring Debian Java Ubuntu Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I assume you're talking about sparkjava.com

The answer largely depends on what your needs are, I think. Does Spark give you everything you need? Is it easy enough for your team to learn in the time you have to learn it?

That said, if Spark is all its proponents say it is, I think it would certainly be worth taking out for a spin if time and other resources allow.
 
Mike London
Bartender
Posts: 1752
17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you. I'm currently mired down in a difficult Lynda.com "tutorial" (my eyes are bleeding!) on Spring Boot. Moves very fast and has lots of "assumptions" even if you're a Java dev.

So much to digest including JPA, Repositories, injection, the whole Spring Boot architecture.

Still, Spring Boot is compelling.

It's just not easy (yet).

Thanks,

-mike
 
Bartender
Posts: 1264
39
IBM DB2 Netbeans IDE Spring Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator


I'm super excited about the new micro-services idea.


So am I. I think that microservices will be not a simple hype in the IT world, just like SOA was. If cloud is the future, then I believe microservices are the way to go. By the way, please have a look at java microprofile web page . Microprofile.io is - in my opinion - a nice initiative to bring microservices under Java EE umbrella.


My question is whether to use the heavy-weight Spring Boot or the ultra light Spark framework.



Personally, I found Spring Framework very complete. A bit difficult, however, to understand deeply.
 
Mike London
Bartender
Posts: 1752
17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Having just taken the new/short (but quite advanced, apparently) Lynda.com course on Microservices, that course covers things that no "Pro" book seems to have, like @RestResource(export=false), for example.

I'm left wondering why a book doesn't cover how to not expose internal services to "clients".

@EmbeddedId was also not found in any of the Spring Boot books.

It's cool that the "findBy" methods are in Spring and you don't have to write code for that.

-- mike

 
Drove my Chevy to the levee but the levee was dry. A wrung this tiny ad and it was still dry.
Devious Experiments for a Truly Passive Greenhouse!
https://www.kickstarter.com/projects/paulwheaton/greenhouse-1
    Bookmark Topic Watch Topic
  • New Topic