Akka HTTP Jackson marsheller

172 views
Skip to first unread message

אדם חונן

unread,
Apr 12, 2015, 7:00:54 AM4/12/15
to akka...@googlegroups.com
Hi,

I see a small mixup(?) in the generated Scala reference documents.
I notice this object appears in the scaladoc for referenced by 1.0-M5, but is not really bundled in the jars.

Also, this may be just work in progress, but just in case - while looking at the source referenced from the docs, I noticed that a new ObjectMapper is allocated on each call, which goes against a jackson best practice (and will degrade performance).
It also doesn't allow the outside user to tweak with Jackson configuration comfortably (e.g. we use the mapper to globally disable the inclusion of non default values for documents that are about to be stored in the DB).



Johannes Rudolph

unread,
Apr 13, 2015, 4:23:23 AM4/13/15
to akka...@googlegroups.com
Hi Adam,

good points. Marshallers are not properly documented yet, so you
couldn't know that the jackson marshaller is currently only thought to
be used from the Java side. The jackson integration lives in its own
module "akka-http-java-jackson-experimental" which you need to include
manually if you want to use it. See here:
http://central.maven.org/maven2/com/typesafe/akka/akka-http-java-jackson-experimental_2.10/1.0-M5/

I created a ticket to adapt Jackson's best practices here:
https://github.com/akka/akka/issues/17181

Thanks for raising these issues,

Johannes
> --
> You received this message because you are subscribed to the Google Groups
> "Akka Developer List" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to akka-dev+u...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.



--
Johannes

-----------------------------------------------
Johannes Rudolph
http://virtual-void.net

אדם חונן

unread,
Apr 13, 2015, 4:04:54 PM4/13/15
to akka...@googlegroups.com
Cool.
Thanks a lot.
Reply all
Reply to author
Forward
0 new messages