I need to create a Spring Maven Rest Project. I tried googling and found that a Spring MVC project can be organized in the following way-
- controllers
- dao
- service
- model
- exception
My doubt here is that I dont need to fetch anything from database rather I will invoke third party rest services to fetch data based on user's requests. I just need to take request from user and invoke a third party service to fetch data for the user's request and save it in a dynamically decided database and table.
So do I need DAO or repository package at all? If not then in which package should I keep my logic of fetching data from rest services. Also, in which package should I keep my rabbit mq listeners and senders? I dont have any views for my applications, do I still need to follow MVC pattern. What project structure / pattern I can follow here. I am very confused. Are there any good books that explains all such questions?