microservices-reference-application
microservices-reference-application copied to clipboard
Implement Book service
Book service implementation
- Create
servicepackage for service layer - Create
repositorypackage for repository layer - DB schema design(mostly 1 or 2 table)
- Configure
liquibaseto automate DB schema changes - Think if Caching mechanism required for this
- Write unit test cases
- Configure different spring profiles for different deployment target
- Different application configuration for different environment
- Connect to Postgres database
Hi Tapas. I would like to contribute if possible. Do you have any documentation or design which would be helpful
Hi @avinashkris9, Thanks for your interest! Let's have a short call tomorrow. I will walk you through the steps to get started.
Hi @avinashkris9, Thanks for your interest! Let's have a short call tomorrow. I will walk you through the steps to get started.
Hi @tapas4java Extremely sorry. Was engaged in some personal /work stuffs.
No problem. Can we connect via LinkedIn?
https://www.linkedin.com/in/tapasjena
@chilukuridevbuzz bhayya, divide the issue in to sub-tasks, so that we can pick and work independently.
@tapas4java
As of now, I see below operations for book service. Can you please let us know if you would like to add any other functionality?
getBookById (This would accept a unique ID as request and return the complete information about the book) getAllBooks (by default it returns random 10 books, if the number is passed then it would return those number of books) Need to understand how offset has to be implemented getAllBookGeneres(Can you please give more details about this ?)
Any other services to be implemented?
for getAllBooks lets implement pagination. offset and current page number will be sent from UI and rest Spring will take care. cannot be random because there might be chance of returning duplicates.
@chilukuridevbuzz Only these 3 Operations should do for us. I can setup a call to explain functionalities if required.
getAllBooks will have pagination based on offset and limit.
Offset - From which record to start. e.g. if offset is 100, the result will return record starting from 101
limit - How many records we want
Example:
If user passes offset = 20 and limit = 10, The API will return 10 records starting from 21.