Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 10 months ago.
This post was edited and submitted for review 10 months ago and failed to reopen the post:
Opinion-based Update the question so it can be answered with facts and citations by editing this post.
Improve this question
I am working on a spring boot application, Which dependent library to use just to consume and push data to database.
spring-kafka or spring-cloud-stream-binder-kafka
Depends what you need to do.
If you want to move data between topics in the same Kafka cluster, and want to use Kafka Streams Topologies, then you can use the Spring Cloud Stream binder.
That being said, spring-cloud-stream-binder-kafka doesn't have a producer (KafkaTemplate), that comes directly from spring-kafka, so if the goal is only to create a basic producer or topic-listener, then you only should need spring-kafka
Spring cloud stream is built on top of spring kafka.
If you want to integrate with external messaging systems then you should go with spring-cloud-stream-binder-kafka. You can also refer this link.
But if you don't want such integrations and just need good performance then you should go with spring-kafka.
Related
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 1 year ago.
Improve this question
Is there any framework/tool which can provide Embedded Kafka instance (Kafka Brokers) without any dependency of spring in Java/Scala?
Can someone please provide a working example of it?
You have several options.
Check out the samples on Confluent examples repo, they use embedded instances of Kafka, ZooKeeper, and Confluent Schema Registry (an example: https://github.com/confluentinc/kafka-streams-examples/blob/65f770c75988afc33d3813a1aa4f9f7818fe81d8/src/test/java/io/confluent/examples/streams/WikipediaFeedAvroExampleTest.java#L51)
TestContainers might be another alternative.
Citrus has also support for that.
If you are using Scala, check out the Embedded Kafka library
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 4 years ago.
Improve this question
I have recently started learning about building application using Spring boot. However being new to UI , I am not sure how to write a simple UI which takes a phone number, stores at a back end and processes the data like I want to , for example send a message / push notification to the mobile number.
I looked for some tutorials which suggest to use Vaadin framework and Thymeleaf template engine. I am looking for suggestions.
Assuming you would want to stay on top of the latest technologies regarding frameworks and Spring Boot web applications, I would recommend looking into React.js and Spring Data Rest. The following guide helped me tremendously with setting up an easy to use example:
https://spring.io/guides/tutorials/react-and-spring-data-rest/
Thymeleaf is used here so you'll also be exposed to that technology as well.
Good luck.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 4 years ago.
Improve this question
we want to develop an application using Java 8, Spring Boot and Thymeleaf. For user management we would like to implement a normal RBAC. I found "Stormpath" and its exactly what we want. But the biggest headache we have here is that our user data will lie not only on servers outside of our company, but in the US. That's a big nogo for us.
I suppose there is no possibilty to install a copy of stormpath on our Servers. So Do you know any alternatives which provide the same level of functionality and support?
After some googling, I've found the KeyCloack opensource project. It seems to be a really good self-hosted and free alternative to Stormpath, Auth0 or other SaaS user management solution.
As it runs on Java, it's seems it's possible to embed it in a Spring Boot Application.
You can also let the KeyCloack server application run standalone and use OAuth2 features to secure any other application.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 6 years ago.
Improve this question
I have a web app that uses a PHP backend. The server gets requests and sends back data in json. In that sense its a simple REST server.
I want to reimplement the server in Java. What technology/framework should I use. More like, how will an enterprise solution look like?
The question is of poor quality. You can get this by simple google search
Spring (Spring Boot: Latest light weight one of spring)
Struts
Play
SparkJava
Dropwizard
And so on are popular java frameworks... Each has its own advantage. Where spring is the strongest and vast one. I would suggest Spring if its a heavy application. Else you can go for any of them.
See this
All of them are REST supported
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 2 years ago.
Improve this question
I currently have a Java Spring Rest API that enables images base64 to be uploaded to my server. Now I would like to know if there is a way I can limit the upload size so that people wont be able to upload 1GB and crash my server.
For those using Spring Boot, consider setting the following parameters in your application.properties (or application.yml) file:
multipart.max-file-size=1Mb
multipart.max-request-size=10Mb
See Common application properties.
I believe it should be configured on the web server level and not on the code level. For example in tomcat you can configure maxPostSize param present in server.xml to limit the size of Http POST request.