Skip to content

Conversation

@KentinTL
Copy link

Etape 3 doned
TODO into TourGuideController and new logic are doned and implemented

KentinTL and others added 28 commits August 26, 2025 13:56
…method

Simplify stream.filter...count == 0 into noneMatch method
Modify privates List VisitedLocation and UserReward into copyOnWriteArrayList
Simplify addUserReward because always return true
…easely withtout implement to much logic into the conroller class
…ing to much code into the new method getNearByAttractionDtos (TourGuideService)
…tions

Add new getNearByAttractionDtos method to use it into TourGuideController where it returns the five closest attraction from user
…ce.getNearByAttractionDtos and return a complete object NearAttractionDto
TourguideApplication -> TourGuideApplication
…Classe

Added new method to use trackUserLocation as an Asynchrone method
…Classe

Added new method to use calculateRewards as an Asynchrone method
highVolumeTrackLocation:
replaced for User user : allUsers by calling our new TourGuideService method trackAllUsersLocation

highVolumeGetRewards:
replaced allUsers.forEach(u -> rewardsService.calculateRewards(u));
 by calling our new RewardsService method calculateAllUsersRewards
…RewardsService

Change availableProcessor into 100 poolThread to be quicker RewardsService and TourGuideService
Simplify allUsers variable and correct redondance warning
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant