In case of simple example that I shared in this post and on GitHub, the answer would be yes, DB would be hit multiple times for same author.
However, this code wasn’t intended for use in production, because of this reason and some others.

GraphQL Java implementation which I used in code doesn’t do optimizations, caching or similar, you need to write code for it. That is why I said that we need to be aware that we are using implementation of GraphQL, since GraphQL is spec only. Maybe some implementation of GraphQL also add caching and optimizations.

For example, memory limit detection in container feature is available from JDK 8u131 and JDK 9.

]]>Comment on Gentle intro to GraphQL in Java World by Jean SILGAhttps://www.javaadvent.com/2017/12/gentle-intro-graphql-java-world.html#comment-236
Wed, 27 Dec 2017 06:36:18 +0000https://www.javaadvent.com/?p=1134#comment-236I have a question. Given N posts having the same author. Will GraphQL hit the database N times to get the same author with this query?

query {
allPosts {
id
title
createdBy {
name
}
}
}

]]>Comment on Gentle intro to GraphQL in Java World by Jean SILGAhttps://www.javaadvent.com/2017/12/gentle-intro-graphql-java-world.html#comment-235
Wed, 27 Dec 2017 06:08:37 +0000https://www.javaadvent.com/?p=1134#comment-235Nice artcile. I have been hearing about GraphQL for some time. Now I know what it is and how to implement it in java. Thanks a lot!

In the sentence “In traditional REST API we, as developers, where under full control”, I am wondering if “were” was not intended in lieu of “where”.

Elements of Valhalla are expected in Java 11, but I’m not sure we’ll see full value types until Java 12. Panama continues to make fairly slow progress, so I’m unsure of the timelines there.

Oracle will eventually replace all of the ‘safe’ Unsafe mechanisms with explicit public APIs. The best place to comment / give feedback on those efforts will be on the openjdk mailing lists themselves (I forget which one covers the unsafe replacements, but it’s between Valhalla and Panama).

Thread local handshakes will be invaluable, it will allow diagnostic engines like our one (jClarity’s Illuminate) to profile more often with less impact..

I know Azul’s Zing has some NUMA partition mapping capabilities, but I haven’t tried it myself with Zing or Hotspot based JVMs. A good place to ask would be on the mechanical-sympathy or Friends of jclarity mailing lists!

Nice post covering a few subjects which snuck under my radar. As I spent some time dissing Java for not having ‘var’ style inference in my post, it is really nice to see it finally coming in.

However, no mention of Valhalla or Panama – will these be out in Java 11?

Do you have a feel where next Oracle will go with unsafe? I am remarkably underwhelmed by varhandles – so look on with some concerns for the future in this regard.

Thread local handshakes sound like a very good start at getting away from the safepoint issues which have dogged the horizontal scalability of the platform for so long.

Also of interest in class meta data sharing – this indicates that ‘many JVMs on one machine’ is becoming a more accepted approach. Again, in my post I discuss how this fits better with cloud computing and how startup times are key in this area. Do you see (or do you already have experience of) mapping individual JVMs to separate numa partitions?

Anyhow – get better and have a great holiday season.

]]>Comment on Running Java in Production: A SRE’s Perspective by Ban Ăn Chơihttps://www.javaadvent.com/2017/12/running-java-in-production.html#comment-231
Thu, 21 Dec 2017 04:52:20 +0000https://www.javaadvent.com/?p=1084#comment-231Thanks, nice post
]]>Comment on Flaky tests 2 by Andrei Solntsevhttps://www.javaadvent.com/2017/12/flaky-tests-2.html#comment-230
Tue, 19 Dec 2017 16:58:01 +0000https://www.javaadvent.com/?p=1057#comment-230AUT means “application under test”. It’s just logs of the application.
]]>Comment on Running Java in Production: A SRE’s Perspective by Lekshmana Perumal Mhttps://www.javaadvent.com/2017/12/running-java-in-production.html#comment-229
Tue, 19 Dec 2017 14:07:38 +0000https://www.javaadvent.com/?p=1084#comment-229Very Good Article, to cover many things…
]]>Comment on Flaky tests 2 by Andreyhttps://www.javaadvent.com/2017/12/flaky-tests-2.html#comment-228
Tue, 19 Dec 2017 12:34:55 +0000https://www.javaadvent.com/?p=1057#comment-228What is “AUT logs” ?
]]>Comment on Microservices Architecture with Java and Docker by Get any image metadata with Spring Boot and Docker - JVM Advent 2017https://www.javaadvent.com/2017/12/microservices-architecture.html#comment-227
Tue, 19 Dec 2017 01:00:35 +0000https://www.javaadvent.com/?p=1121#comment-227[…] This is the second part of a series of three articles, but I decided to condensate in two to give space to another article. The first part is available on this website at https://www.javaadvent.com/2017/12/microservices-architecture.html. […]
]]>Comment on Running Java in Production: A SRE’s Perspective by Hristohttps://www.javaadvent.com/2017/12/running-java-in-production.html#comment-226
Mon, 18 Dec 2017 14:58:26 +0000https://www.javaadvent.com/?p=1084#comment-226Great article!
]]>Comment on Flaky tests 2 by Flaky tests - JVM Advent 2017https://www.javaadvent.com/2017/12/flaky-tests-2.html#comment-225
Sun, 17 Dec 2017 22:58:51 +0000https://www.javaadvent.com/?p=1057#comment-225[…] Read the answer in part 2 of this article which will be published tomorrow. We will continue with more examples and best […]
]]>Comment on Running Java in Production: A SRE’s Perspective by Running Java in Production: A SRE’s Perspective – Full-Stack Feedhttps://www.javaadvent.com/2017/12/running-java-in-production.html#comment-224
Sun, 17 Dec 2017 17:45:49 +0000https://www.javaadvent.com/?p=1084#comment-224[…] As a Site Reliability Engineer (SRE) I make sure our production services are efficient, scalable, and reliable. A typical SRE is a master of production, and has to have a good understanding of the wider architecture, and be well versed in many of the fine… Read more […]
]]>Comment on Flaky tests by Flaky tests 2 - JVM Advent 2017https://www.javaadvent.com/2017/12/flaky-tests.html#comment-223
Sat, 16 Dec 2017 15:02:39 +0000https://www.javaadvent.com/?p=1023#comment-223[…] the previous part, I mentioned the test that sometimes failed because payment time was in future. It’s time to […]
]]>Comment on MICROSERVICES WITH AKKA by Microservices with Akka | Java Code Geeks | Programming Bitershttps://www.javaadvent.com/2017/12/%c2%b5services-with-akka.html#comment-222
Wed, 13 Dec 2017 20:39:53 +0000https://www.javaadvent.com/?p=947#comment-222[…] Published on Java Code Geeks with permission by Marcus Eisele, partner at our JCG program. See the original article here: MICROSERVICES WITH AKKA […]
]]>Comment on Learning to use Wholly GraalVM! by Learning to use Wholly GraalVM! | Java Code Geeks | Programming Bitershttps://www.javaadvent.com/2017/12/learning-use-wholly-graalvm.html#comment-221
Wed, 13 Dec 2017 16:30:04 +0000https://www.javaadvent.com/?p=1013#comment-221[…] Published on Java Code Geeks with permission by Mani Sarkar, partner at our JCG program. See the original article here: LEARNING TO USE WHOLLY GRAALVM! […]
]]>Comment on About by JVM Advent Calendar - back in business - JVM Adventhttps://www.javaadvent.com/about-page#comment-220
Sat, 02 Dec 2017 13:25:26 +0000http://www.javaadvent.com/?page_id=2#comment-220[…] About […]
]]>