Code Monkey home page Code Monkey logo

Comments (2)

bbortt avatar bbortt commented on June 18, 2024

das liegt am caching der User entity. das projekt ist im UserDTO, private Map<Long, String> rolePerProject; hinterlegt. oder eben nicht, weil das ja vor dem erstellen geladen und dann gecached wurde.
frontend mässig ist das die private userIdentity: Account | null = null; im account.service.ts. diese wird bei einem refresh aber erneut abgefragt.

die CacheConfiguration implementier momentan Ehcache, was sowieso nicht skalierbar ist. und dort findet man eben:

createCache(cm, io.github.bbortt.event.planner.repository.UserRepository.USERS_BY_LOGIN_CACHE);
createCache(cm, io.github.bbortt.event.planner.repository.UserRepository.USERS_BY_EMAIL_CACHE);

ich schlage vor, die CacheConfiguration aufzuräumen, wir haben dort wohl nicht wirklich die übersicht. gewisse dinge wären aber schon gut, zu cachen. auch den User-cache finde ich grundsätzlich sinvoll. diese information wird sehr viel abgefragt und verändert sich ausser in diesem speziellen fall fast nie. allerdings müsste er dann hier eben aufgeräumt ("evicted") werden. und im frontend muss kontrolliert werden, dass die userIdentity erneut abgefragt wird.

Edit: siehe `@CacheEvict.

from event-planner.

bbortt avatar bbortt commented on June 18, 2024

zusammengefasst nach Diskussion: wir entfernen die Caches momentan. beim Drehbuch schauen wir dann, wie sich die Performance verhält.

from event-planner.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.