I am using spring boot app with mongodb, and postgres. And use spring data to interact with db. Need auditing for the changes which happen in the app. Currently exploring javers to do this. But is there any way where i can achieve auditing at migration level as well.
Related
I tried to migrate the springboot application to the Dropwizard. However, I now have a problem that there is no framework in the Dropwizard that supports working with Cassandra databases, such as CRUD operations. Do any of you have any good suggestions?
We are developing Micrsoservices application using Spring & Hibernate. We have implemented hibernate-envers for data auditing and our database is PostgreSQL. We would like to have log auditing in a separate microservice.
How to enable audit-logging in Microservices Spring App?
I have a Spring Boot application that uses Spring Batch. I want now to implement an admin panel to see all job statuses. For this, Spring has "spring-batch-admin" But I see that is deprecated long time ago:
The functionality of Spring Batch Admin has been mostly duplicated
and
expanded upon via Spring Cloud Data Flow and we encourage all users to
migrate to that going forward.
But then Spring Cloud Data Flow says:
Pipelines consist of Spring Boot apps, built using the Spring Cloud
Stream or Spring Cloud Task microservice frameworks
So in order to use this functionality do I really need to convert my spring boot app to a microservice? Isn't this an overkill just to see some batch statuses? Also I can not install docker on my production server(for various reasons) Can I still use Spring Cloud Data Flow without docker?
Yes, spring boot batch should be wrapped as spring cloud task, which should not be too complicated.
If Docker does not suit your needs - https://docs.spring.io/spring-cloud-dataflow/docs/current/reference/htmlsingle/#getting-started-local-deploying-spring-cloud-dataflow
What is the difference between these Spring Boot jars.
spring-boot-starter-data-mongodb jar
spring-data-mongodb jar
mongodb-driver jar
mongodb-driver-core jar
What I understand in those all is that mongodb-driver is the java driver for mongoDB. And spring-boot-starter-data-mongodb is starter like spring boot has for many (spring-boot-starter-web, spring-boot-starter-test).
Can someone please explain their role in Spring boot.
mongodb-driver-core: The Java operations layer for the MongoDB Java Driver. Third parties can ' + 'wrap this layer to provide custom higher-level APIs.
mongodb-driver: The driver which allows you to connect to MongoDB databases from java applications.
spring-data-mongodb: The library you need to use Spring Data with MongoDB in your project, which might not be Spring Boot based.
spring-boot-starter-data-mongodb: The starter for using Spring Data Mongo DB in Spring Boot, with everything you need for that.
Note that each of these libraries makes use of the other ones above, so it increases abstraction.
See also:
https://mvnrepository.com/artifact/org.mongodb/mongodb-driver-core
https://projects.spring.io/spring-data-mongodb/
https://spring.io/guides/gs/accessing-data-mongodb/
I created a simple Java application and use Hibernate to deal with postgres database. I want to use Spring Data JPA with Hibernate in my project. Is there a way to do that?