microservices-reference-application icon indicating copy to clipboard operation
microservices-reference-application copied to clipboard

Implement Book service

Open tapas4java opened this issue 4 years ago • 8 comments
trafficstars

Book service implementation

  • Create service package for service layer
  • Create repository package for repository layer
  • DB schema design(mostly 1 or 2 table)
  • Configure liquibase to 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

tapas4java avatar Dec 21 '20 10:12 tapas4java

Hi Tapas. I would like to contribute if possible. Do you have any documentation or design which would be helpful

avinashkris9 avatar Dec 24 '20 11:12 avinashkris9

Hi @avinashkris9, Thanks for your interest! Let's have a short call tomorrow. I will walk you through the steps to get started.

tapas4java avatar Dec 24 '20 16:12 tapas4java

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.

avinashkris9 avatar Jan 05 '21 05:01 avinashkris9

No problem. Can we connect via LinkedIn?

https://www.linkedin.com/in/tapasjena

tapas4java avatar Jan 05 '21 05:01 tapas4java

@chilukuridevbuzz bhayya, divide the issue in to sub-tasks, so that we can pick and work independently.

sreekanthvaripalli avatar Jan 18 '21 16:01 sreekanthvaripalli

@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?

chilukuridevbuzz avatar Jan 18 '21 16:01 chilukuridevbuzz

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.

sreekanthvaripalli avatar Jan 18 '21 17:01 sreekanthvaripalli

@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.

tapas4java avatar Jan 19 '21 14:01 tapas4java