Comments (2)
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.
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)
- "invite user" modal doesn't open
- colored Invitations, bugfixes, documentation
- date-box major failure on md- (or smaller) screens HOT 1
- radio-buttons vs dropdowns
- what actions can I take on an archived project?
- scss styles not loaded HOT 1
- husky v5 migration / after upgrade cleanup
- google cloud is cool - but too expensive! HOT 1
- translation not found while inviting HOT 2
- internal server error when inviting people HOT 2
- labels for events, new screenplay filter HOT 1
- drag n' dropping events does not trigger update
- ui bug or feature? parallel events cascaded HOT 1
- our screenplay is very performance heavy HOT 1
- microservice migration - remaining instances HOT 1
- microservice migration - decouple user information
- microservice migration - "unsecure" management endpoint HOT 1
- user service cache and hystrix fallbacks for endpoints HOT 1
- calendar view is not "persistent"
- "show since" in event history (project admin) not translated
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from event-planner.