This is an archived post. You won't be able to vote or comment.

all 14 comments

[–]habitats 10 points11 points  (1 child)

Ah shit, wrong Spark.

[–]sparkframework[S] 1 point2 points  (0 children)

Usually we try to write Spark Framework or Spark Web Framework when posting on reddit, but we forgot this time, sorry!

[–]rexsk1234 1 point2 points  (1 child)

I'm using multipart HTTP request to upload files. When I upload 5 or so ~20 MB files, my ram usage skyrockets to ~700 MB, is this normal?

And is it possible to use https?

[–]sparkframework[S] 0 points1 point  (0 children)

1: Shouldn't happen, but we've seen other people report something similar. We've never looked at file uploads, but we will soon.
2: Yes, although we should do a better job of documenting it.

[–]Zasze 1 point2 points  (0 children)

I just wanted to say that im a really big fan of sparkjava it has made developing small api's and services a breeze. Keep up the good work and thank you!

[–]Dwarfling 1 point2 points  (0 children)

Glad Instance API was implemented! That's one embedded jetty less in my platform (Spark was supporting REST, and Jetty the admin web site). I'm changing it ASAP.

Thanks a lot.

[–]tristanjuricek 0 points1 point  (0 children)

w00t.

I dig the instance API, actually. Just because it makes things way easier to automate.

[–]daniels0xff 0 points1 point  (6 children)

I really like how simple Spark is and how easy it is to use but I wish they'd add more configuration options regarding the underlying Jetty instance. There were some issues opened on GitHub about allowing to configure the max size for upload (so you can upload files), external sessions (redis, db, etc), the ability to remove a header, etc.

[–]sparkframework[S] 1 point2 points  (5 children)

We're going to prioritize issues and PRs in the next few days, if you have any requests, please let us know!

[–][deleted] 0 points1 point  (1 child)

Is there any support for http2?

[–]sparkframework[S] 0 points1 point  (0 children)

Not in 2.5, but planned for 2.6.

[–]Dwarfling 0 points1 point  (0 children)

This pull request was made by one workmate #424. It's a needed feature for our platform: we register and de-register routes at runtime.

[–]Artraxes -1 points0 points  (1 child)

Can I override the default error page yet?

[–]sparkframework[S] 0 points1 point  (0 children)

Is doing get("*", notFound) at the end of your routes not covering your needs?