Completed

Java Spring Boot Microservices

We are working on a number of microservices which are part of a multi-module Java Spring Boot project. The project is structured a little bit like this example: [login to view URL]

## Microservice #1: Config Service ##

This application handles requests for pre-saved configuration objects stored in a database. They contain parameters for other microservices. For the Active User Count Service, there exists for example a default ActiveUserCountConfig object which can be fetched using its profile ID. This should be defined in the [login to view URL] file of the application fetching a config. At the moment, it is hard-coded in a rest consumption URI.

Logic used: - Rest controller GetMapping end point: /getActiveUserConfig. Query param: profileId (integer). Calidate profileId matches document field profileId in ActiveUserConfig collection. If match found, return MATCH.activeUserConfig. If no match found, return a default ActiveUserConfig.

## Microservice #2: Active User Count Service ##

The intention is for this microservice to query a MongoDB cloud instance with a certain frequency (e.g. every Y seconds) in order to find out how many users were active within the last X seconds. This information can then be sent to clients and other microservices through a @GetMapping structure within a RestController class. These requests will be frequent, but only an approximate count of the number of users online is required. Hence, we do not want to overwhelm the database with unnecessary queries when instead we can refresh the value of a variable within the microservice every so often. The values for X and Y will be retrieved by querying a separate microservice which supplies configuration objects.

Logic used:

Initialise AUC service with consuming rest request to Config Service to retrieve a config object as defined in Active User Count Service application.properties.

Config object will contain following parameters:

interval

tMinus

Background thread: Loop every `interval` (Y) seconds, count number of documents in UserProfile collection where document field lastPingTime is greater than current time minus `tMinus` (X) seconds. Construct an ActiveUserCountResult object which contains both query results and parameters and save this to a dedicated collection in the database. Save the count in memory for access by rest controller.

Rest controller: GetMapping end point /getActiveUserCount - return current count value as determined by background thread above.

## Microservice #3: User Activity Logging Service

This application logs when a user was last active. It should include a REST controller which receives a post request that contains a document ID for a UserProfile. It should then construct a UserProfileLite object. It should then compare the lastpingtime of the UserProfileLite object with the current system time. If the current system time exceeds that of the constructed UserProfileLite object, lookup using the ID and update the mathcing UserProfile document in the database with the current system time. Note that UserProfile is an extension of UserProfileLite. UserProfile should be the class that matches the document, but UserProfileLite exists and contins fewer properties so as to allow for a reduced memory footprint in the business logic. See code for better illustration.

Please see attached brief document for scheme of work and attached Java project for a partially completed version of the code.

Skills: Java, Java Spring, MongoDB, JUnit

See more: spring boot microservices communication, spring boot microservices example step by step, spring boot microservices example mkyong, spring boot microservices example github, spring boot microservices mongodb, spring boot microservices resume, spring boot microservices api gateway, spring boot microservices with docker, spring boot microservices containers and kubernetes - how to, spring boot microservices with docker example, spring boot autowire not working, spring boot microservices project, spring boot microservices, spring boot microservices with kafka, spring boot microservices example, spring boot @scheduled not working, spring boot microservices project structure, spring boot microservices example java, java spring boot microservices resume, build and deploy java spring boot microservices on kubernetes

About the Employer:
( 0 reviews ) Southampton, United Kingdom

Project ID: #30177098

Awarded to:

maadirajudata

Hi Greetings! I have profound experience and expertise working with MSA for various requirements. I believe I can service you with utmost quality with junits and performing functions. Thanks Madiraju

£200 GBP in 3 days
(45 Reviews)
5.6

14 freelancers are bidding on average £193 for this job

dipakjadhav08

hello, I have 11 years of experience in java application design and development. I will do [login to view URL] message me for further discussion.

£300 GBP in 7 days
(101 Reviews)
5.5
engrkhanzain

Expert in Java Spring & Server Please see recent review regarding JAVA from my professional clients https://www.freelancer.in/projects/eclipse/antlr-IDE-java-calculator/reviews https://www.freelancer.in/projects/java More

£250 GBP in 15 days
(36 Reviews)
5.1
Valuesolutions

Hello, I hope this finds you well. I have just seen your project requiring; Java JUnit Java Spring MongoDB I believe that my 8-year experience in this field is what you need right away. Avoid the headache of looking f More

£200 GBP in 7 days
(12 Reviews)
5.2
asirihewage

Hi, I'm Asiri, working as a Software Engineer and I would like to help you. Please check my reputation on google. [login to view URL] Let's discuss more on chat. Thanks & regards

£135 GBP in 7 days
(1 Review)
0.0
vparishuddam

Having 12 + yrs of experience in JAVA and J2EE technologies. Good experience on selenium and JUNIT. Good experience on frame works like Spring Boot, Spring Security and Spring Cloud. Having 3 yrs extensive work experin More

£250 GBP in 10 days
(0 Reviews)
0.6
kanhaiya1088

Hi, I have just checked your requirements and so interested in your job. I am a backend developer with 10 years of rich experience in Java, Spring MVC, spring-boot, microservices, rest Apis, etc I think you want to hir More

£240 GBP in 7 days
(0 Reviews)
0.0
saitdemirkaya

I interesting your project.I experience 3 years with java and spring boot. If you want, we talk details in chat

£200 GBP in 7 days
(0 Reviews)
0.0
mohak1804

I am a Java Developer with 5+ years of industry experience. I have worked on micro services and multiple module project architecture. Tech Stack :- Core Java, spring, REST,AWS, MySQL , Postgres, Angular. I am flexibl More

£22 GBP in 5 days
(0 Reviews)
0.0
ps1011

I have working experience in good product company on these types of microservices. It would be delivered on time if you provide this project to me.

£200 GBP in 15 days
(0 Reviews)
0.0
promaniaq

I have 8 years of experience in Java, Spring and other middle tier technologies. I also have 2 years of experience on Spring Boot and 4 years of experience in REST API. I have daily hands on experience on all technolog More

£50 GBP in 4 days
(0 Reviews)
0.0
snkmsiva

Am expert java developer with more than 13+ experience in development of applications, microservices, web services, rest services etc. These use cases are very interesting and will be able to deliver in specified time.

£250 GBP in 7 days
(0 Reviews)
0.0
shijudasan

hi I am a full stack developer with years of experience in website development.. Ready to start right away ..No BS.. Microservice 1 and 3 are obvious.. Regarding 2 , we can use spring scheduler to do that .. I an More

£161 GBP in 3 days
(0 Reviews)
0.0
(0 Reviews)
0.9