Curious about the future of data-driven systems? Join our Data Engineering roundtable and learn how to build scalable data platforms.
Data Engineering: The industry has come a long way from organizing unstructured data to adopting today's modern data pipelines. See how.
Java Developer at www.javabullets.com
Martin is an experienced designer/developer with 18 years experience delivering projects from requirements to implementation, and support phases. He has worked in a range of industries including banking, financial services, communications, media and government sector. @javabullets Consultancy Services at www.glenware.com
Stats
| Reputation: | 1923 |
| Pageviews: | 1.5M |
| Articles: | 22 |
| Comments: | 43 |
Comments
Jul 17, 2020 · Lauren Forbes
My issue with GraphQL over REST is that with a REST service I can have an optimised query to a database to retrieve the data as efficiently as possible. But when I move to a graphQL the client can then pick and choose what fields they request and retrieving the data requested may be more efficient running different queries based on those selection.
Jun 09, 2020 · Michael Bogan
I ended up using node-postgres since im generally talking to microsevices with smaller schema's and you can push code faster
Apr 14, 2020 · Michael Bogan
Great article. A lot of the problem with "Keeping up with technology" is that the underlying ideas dont change that much on a year to year basis, but you are learning new API's or syntax to solve the same problems.
Its like someone rearranging my garage a few times a year, and i spend the next few months finding out where they have put things before starting again
Jan 06, 2020 · Charleigh Smith
I thought -
management.endpoint.shutdown.enabletrueWould only enable the shutdown endpoint?
Jun 06, 2019 · Arun Pandey
Problem with graphQL is that its not as simple to use as REST - you have to structure a GQL query/mutation to access the data. While REST is just call an endpoint - then use the data. I also think REST is easier to document
I can see why a high volume service like FB would use GQL - but for smaller sites I think REST is simpler
Jan 24, 2019 · Duncan Brown
One thing I've found with microservice development is that I'm not mapping entity models as extensively as I once did with say JSF development. With the MS model it makes more sense to map the key relationships I need for each call, then use spring data repositories for access, rather than traversing a JPA model. Has anyone else found this?
Oct 29, 2018 · Dave Taubler
I think we'll see abstract classes used less in favour of interfaces with default methods
Jan 04, 2018 · Mike Gates
This is a really good post - Im inclined to agree with you on MRJAR's being a bad idea. Just seems to pollute a codebase
Dec 30, 2017 · Duncan Brown
I might look at this too for an evaluation of options for spring boot
Dec 22, 2017 · Duncan Brown
Probably needs profiling - one of the advantages I see running this as a service is I can schedule a daily restart to clear memory leaks if any. It might be an unpopular approach - but it buys time to solve the real problem
Dec 22, 2017 · Duncan Brown
i dont think so - you can do that with procrun but its harder to implement
Dec 22, 2017 · Duncan Brown
i dont think so - you can do that with procrun but its harder to implement
Dec 19, 2017 · Duncan Brown
Im not sure I would run VisualVM in production - pre-prod environments yes, but not production
Dec 19, 2017 · Duncan Brown
as a general wrapper or with spring boot?
Dec 19, 2017 · Duncan Brown
yes - i normally have a directory per deployment
Nov 29, 2017 · Mike Gates
I always liked the sql taglib on JSP best
Nov 21, 2017 · Mike Gates
Nice article, but Im coming to the conclusion that external tables are a better way to load CSV's into databases than Spring Batch, even in circumstances where we want to process the data once loaded. Its simpler and quicker in my experience
Nov 08, 2017 · Mike Gates
Well if you mean it returns all elements that satisfy the predicate, and in the case of ordered lists this is the elements to the left of the predicate.
What you are asking for is dropWhile - the opposite -
Stream.of(1,2,3,4,5).dropWhile(p -> p < 4).forEach(System.out::print);
Oct 03, 2017 · Grzegorz Piwowarek
Good post - is the reasoning something to do with the lambda compiling to a static method, so making all Exceptions unchecked means the calling methods signatures dont have to be changed?
Sep 26, 2017 · Mike Gates
Thanks Oliver. I based this post on a genuine issue I had and needed to expose the refresh method. The reason for doing it like this was this post http://forum.spring.io/forum/spring-projects/data/104364-entity-refresh-using-spring-data-jpa-module where you advise to expose refresh on a Repository.
Its a 2011 post, so things may have changed, but I felt it was a reasonable approach, but thanks for your feedback
Sep 22, 2017 · Mike Gates
Nice article - documentation marginally better in Java 9 - https://docs.oracle.com/javase/9/docs/api/java/util/Formatter.html
Sep 08, 2017 · Mike Gates
Thanks - Ive fixed the typo
Jul 12, 2017 · Mike Gates
It looks like it - i wonder if there are any nuances
Jun 21, 2017 · Grzegorz Ziemoński
I was looking at this project last week as a spring version of django admin - looks a good project. I couldnt see how it would work at a microservice level as you would need it to be more centralised
Jun 21, 2017 · Jordan Baker
I dont understand how its passwordless? You need a password to access your email - so its more a delegated password. 2FA sounds better
Jun 21, 2017 · Mike Gates
My next post is conclusions and design considerations of using Spring Data REST, and one of the downsides is the level of access that exposing a Repository leaves, and whether you are better using a DTO approach.
Jun 15, 2017 · Mike Gates
You can also override default methods in interfaces -
interface Def1 {
public default String getString() {
return "Def1";
}
}
interface Def2 extends Def1 {
public default String getString() {
return "Def2";
}
}
Jun 12, 2017 · Matthew Casperson
Its also worth a look at procrun - https://www.javabullets.com/procrun-java-programs-as-windows-services/ - the advantage being procrun is used by apache projects
May 26, 2017 · Mike Gates
How does this compare to hibernate-envers?
May 11, 2017 · Mike Gates
Good summary. I read the discussion on Hackernews and a lot of people were implying that IBM and JBOSS were purely motivated by politics and support of OSGI. But if you read the JBOSS blog the main issue was backward compatability being lost through Jigsaw, and their no vote was to allow time for this issue to be addressed. This was also the main objection of the London Java Community
Apr 11, 2017 · Duncan Brown
Good article - I would have used the Spring Data framework for persistence - your implementation just leaves it to the implementer to decide. If that was the case I would have considered moving the data access to your PersonService?
Feb 24, 2017 · Arun Pandey
Yes that was the specific problem they wanted to solve - how to introduce API changes to an API structure that may not be under your control - and they would have struggled to solve it any other way. My concern is that default methods will be prone to misuse - but then again thats how languages evolve
Feb 23, 2017 · Arun Pandey
I cant decide if default methods are a great step forward or potential hazard. It depends on the usage as the use case for default methods is backward compatability in API's. I fear it will get misused
Feb 20, 2017 · Shamik Mitra
Good explanation - but you can understand the confusion -
Java - One per Classloader
Spring - one spring bean per id per spring container
Jan 12, 2017 · Jose Praveen
I was using this approach recently with spring security its worth a look on configuring 2 levels of security
Nov 16, 2016 · Mike Gates
Good tutorial. Got a bit confused by the javax.enterprise.event.Event.fire method - and was trying to place it in the FireStation concept in your example, not the Event object
Jun 16, 2016 · Naresh Joshi
Its not purely OO - but pragmatic OO - like you observe it uses primitives for compiler optimizations
Mar 01, 2016 · Deepak Karanth
disappointed you used amazon referral links
Jan 14, 2016 · John Vester
I dont think its that big an issue. Stackoverflow is the place to go to get quick answers to smaller problems - an example being best practice in a new version of a library or language, or to clarify syntax. But the moment the problem gets more involved then you are back hunting for blogs or reading the manual to understand how to implement the code. That said the best posts on stackoverflow are in the form of blog posts.
Dec 09, 2015 · Martin Farrell
Thanks for your feedback - The point i was trying to make is that to use this approach you must associate the annotation to a JPA object
Jun 18, 2015 · James Sugrue
I can work with both - but prefer spring simply because i can hit the ground running with it. You have projects like -
> spring boot for a quick start
> spring data allow you to quickly define your core DAO's
> Spring Loaded for hot deploy - you can get this for JEE but you have to pay
I also agree with the criticism of JSF - its ok but i find it too abstracted
Aug 15, 2014 · Tony Thomas
I have the same issue with Lombok that you have cited - i like to know whats going on. The annotations seem like a good idea, but I like to see my equals, hashcode's and toStrings. I also think its important for developers to see this code as they apply a number of important rules in Java. With this in mind I just let the IDE create the methods
Oct 28, 2013 · Mr B Loid
Id also include androidkickstartr - great to get a base application integrating a number of the above projects (robojuice, sherlock)