Click here to Skip to main content
15,885,683 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
Develop an psuedo book management application using Scala, Akka and Kafka.

1. Kafka Application should have the below mentioned features -

a. Publish/produce the user/author/book details (every 30 seconds for Users/Authors and every 1 min for Book details) on three different kafka topics(one for user, one for author and one for books).

b. Read the data from these three topics and summarize the following and put it on a different kafka topic at every(5 mins)

- Which Author has the most number of Subscribers?

- Which Book has the most number of Subscribers?

- Which User has the most number of books subscribed?

c. User Details: Name, Age, Gender, Email, Phone, Address, Books Subscribed

d. Book Details: Book Name, Author Name, Price of the book, Edition of the book, Genre and Year of Release

e. Author Details: Name, Age, Gender, Email, Phone, Address, Book(s) Details of Author

f. Produce your own data for user/author/book using the above details.



2. Akka API should have the below mentioned features -

a. The API should accept a request and provide back an acknowledgement. The request should have a path as /name/{name of user/author/book} and query parameter as typeOfName = {user/author/book}.

b. Store the names of Users/Authors/Books in three different files.

c. Once you receive a request, validate the name received in request with the names stored in the files. If name matches, send the acknowledgement in a proper manner.







###Key Features-

- Program should be clean and readable

- Follow proper coding standards

- Data should be in JSON format

- All the failure scenarios should be handled accordingly

- Proper exception handling to be implemented

- Use a good amount of user/author/book

- Show proper use case of fundamentals of scala/kafka/akka

- In case there is some failure scenario for a particular sensor, the program should not stop and process the rest of the sensors data and provide the output

What I have tried:

can anyone please help me with this code
Posted
Updated 13-Dec-22 2:16am
v2
Comments
Dave Kreskowiak 13-Dec-22 8:18am    
You haven't asked a question or described a problem you're having, so it's pretty much impossible to "help" you until you do.

Just posting your homework assignment suggest you're looking for someone to write the code for you and that's just not going to happen.

1 solution

While we are more than willing to help those that are stuck, that doesn't mean that we are here to do it all for you! We can't do all the work, you are either getting paid for this, or it's part of your grades and it wouldn't be at all fair for us to do it all for you.

So we need you to do the work, and we will help you when you get stuck. That doesn't mean we will give you a step by step solution you can hand in!
Start by explaining where you are at the moment, and what the next step in the process is. Then tell us what you have tried to get that next step working, and what happened when you did.

If you are having problems getting started at all, then this may help: How to Write Code to Solve a Problem, A Beginner's Guide[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900