Ease of Use
Spark Framework provides a simple and intuitive API, making it easy to set up and run a web application with minimal configuration.
Lightweight
Spark is very lightweight, which makes it well-suited for small applications and microservices where resource consumption is a concern.
Java 8 Lambda Support
It supports Java 8 lambdas, allowing developers to write clean, readable, and more concise code.
Rapid Development
The framework facilitates rapid development and prototyping, enabling developers to quickly build and iterate on ideas.
Minimal Configuration
With less boilerplate code required, Spark allows developers to focus on business logic rather than intricate configurations.
Promote Spark Framework. You can add any of these badges on your website.
The code for serving queries is found in the WebSearch class. We’re using Spark (the web framework, not the big data engine) to serve a simple search form:. - Source: dev.to / 11 months ago
Get a solid grasp of building web applications with Java either using Spring (using Spring Boot) or Spark (if you're also new to Java learning Java and Spring can be a mouthful). Instead of JSP use something Thymeleaf or build the frontend with HTML and JavaScript (and serve the bundles). Source: over 1 year ago
So most of the "tech" stack goes out. In our first startup we created our own web-container by using https://sparkjava.com - and then built a JSR-223 scripting support. Source: over 1 year ago
Stack: Java, Spark (not the Apache Spark but this), Kafka, several other libraries like FasterXML's Jackson. Source: almost 2 years ago
The blog is just hugo so it's 100% static files over nginx. The search engine is serverside-rendered mustache templates via handlebars[1], via served via spark[2]. It's basically all vanilla Java. I do raw SQL queries instead of ORM, which makes it quite a bit snappier than most Java applications. The sheer size of the database also mandates that basically every query is a primary key lookup. The code is written... - Source: Hacker News / almost 2 years ago
Much better! By the way, how does it compare to Spark? https://sparkjava.com/. - Source: Hacker News / almost 2 years ago
It's a Debian server running nginx into a bunch of custom java services that use the spark microframework[1]. I use a MariaDB server for link data, and I've built a bespoke index in Java. [1] https://sparkjava.com/ I don't use springboot or anything like that, besides Spark I'm not using frameworks. - Source: Hacker News / about 2 years ago
If you want just some small web app or something standalone without having to hassle around proper web server, etc., you can have a look at Spark Java: https://sparkjava.com/. Source: about 2 years ago
There are a huge set of web frameworks in Java that have the same example as shown on this site; I have no idea how this differs from, say, https://ratpack.io or https://sparkjava.com. This really needs some key features on the site to sell it. - Source: Hacker News / about 2 years ago
In university I learned a bit of Java, so maybe I could use it professionally I guess?. There were many options to choose from. DropWizard, Spark, Play Framework. But the more documented one in the internet I found was Springboot, besides there were some courses in spanish and some friends that knew something about Springboot, so I give it a chance. - Source: dev.to / over 2 years ago
Annotation style programming (Spring Boot, Quarkus, Micronaut, etc.) are not the only way to write web services in Java if they're not your thing (though they do make things a lot more convenient). Spark and Helidon SE offer a more imperative style of programming for example. Source: over 2 years ago
XML is pretty rare in Java code written this side of 2010. Not that it doesn't exist, but the whole spring mess is not something you really have to touch to set something up in Java. I usually enjoy Spark[1] for bootstrapping a simple REST-like interface. There are other options, but in general, you don't really need glue-languages at all if you stray away from old-fashioned EE-style frameworks. [1]... - Source: Hacker News / over 2 years ago
I can't stand any magic, it always inevitably feels like a massive liability to me and always bites me in the ass sooner or later. I use http://sparkjava.com in my projects. It's as tiny as web frameworks get, it only handles routing and request/response, and you get to do everything else manually. Only thing I had to hack into it was response streaming. The one most internally convoluted and enterprise-y... - Source: Hacker News / over 2 years ago
I don't know what "ASP.Net-like" implies, but take a look at https://sparkjava.com/ It was quite a pleasure to use. - Source: Hacker News / over 2 years ago
When I first heard of the term "web application", I started trying to download/install and play with GlassFish and Tomcat and JBoss, etc. When one seemed too complicated I'd jump to the next. There were jars and wars and admin panels and endless configuration. Total mind-fuck. I never got the hang of them. The next time I visited web apps, Jetty was around and seemed way smoother in comparison. Microsoft's IIS... - Source: Hacker News / almost 3 years ago
I'll use the Spark library to getting a “pong” to every “ping” request. - Source: dev.to / about 3 years ago
Writing integration tests is not always straightforward. By definition, integration tests require interaction between several components, and we need to deal with them in many different ways. Let’s look at some tools that will make writing and reading tests easier. I believe that Testcontainers and the Spark Framework will allow you to write shorter and more descriptive tests. - Source: dev.to / about 3 years ago
I use http://sparkjava.com in my hobby project. It mostly does what I want, but I had to hack it a bit to be able to stream responses. - Source: Hacker News / over 3 years ago
I have used https://sparkjava.com/ when I still did Java some years back. It was as thin as they come and a real joy to get started and going. - Source: Hacker News / over 3 years ago
I'm not sure if you have heard about java spark [1]. Back in the day, around 2-3 years ago we used to implemented all our java service in java spark. [1] https://sparkjava.com. - Source: Hacker News / over 3 years ago
We use the Spark Java framework for REST API endpoints. In our main method we import the library as static and create endpoints as shown in their getting started guide and declare static handlers for GETs and POSTs, etc inside main. This seems fine to me so far (please let me know if you know of any issues with this). Source: over 3 years ago
Do you know an article comparing Spark Framework to other products?
Suggest a link to a post with product alternatives.
This is an informative page about Spark Framework. You can review and discuss the product here. The primary details have not been verified within the last quarter, and they might be outdated. If you think we are missing something, please use the means on this page to comment or suggest changes. All reviews and comments are highly encouranged and appreciated as they help everyone in the community to make an informed choice. Please always be kind and objective when evaluating a product and sharing your opinion.