Examples: query, "exact match", wildcard*, wild?ard, wild*rd
Fuzzy search: cake~ (finds cakes, bake)
Term boost: "red velvet"^4, chocolate^2
Field grouping: tags:(+work -"fun-stuff")
Escape special characters +-&|!(){}[]^"~*?:\ - e.g. \+ \* \!
Range search: properties.timestamp:[1587729413488 TO *] (inclusive), properties.title:{A TO Z}(excluding A and Z)
Combinations: chocolate AND vanilla, chocolate OR vanilla, (chocolate OR vanilla) NOT "vanilla pudding"
Field search: properties.title:"The Title" AND text
Answered
Cache RestAPI Responses

Hallo,

würde es sinn machen, die UserPermissionRestService API calls zu cachen? Da es bei jedem Subatomic Request abgefragt wird, kann man es über den Cache holen.
Generell, wäre es sinvoll für jede Supersonic/Subatomic App eine Cache zu haben?
Was hält ihr davon?

LG,
Anand

  
  
Posted one year ago
Votes Newest

Answers


I am afraid there is no right or easy answer to this question. Quarkus has an easy caching option https://quarkus.io/guides/cache, but it does not scale. There are a million solutions out there for caching. Depending on your needs there will be a ready to use framework. Some examples would be hibernate caching, infinispan, elastic search (index) and so many more. There is also a solution provided in conx-framework using browser cookies to cache roles and permissions. This might work only for frontend roles. Maybe in your case i simple application scoped cache with short lifetime might be a way to go.

cheers luke

  
  
Posted one year ago
Lucas Reeh
108 × 4 Administrator