3.Slardar
Original6/20/22SlardarHomeAbout 1 min
3.Slardar
![]()
The big fish, a sailor, will starlight your way.
SpringMvc (not WebFlux) wrappers and extensions, such as multi-language, multi-timezone, security, caching, sessions, etc.
3.1.Module Project
- slardar - basic features eg. caching, event, serializing
- slardar-hazel-caching - distributed cache on hazelcast
- slardar-hazel-session - distributed session on hazelcast
- slardar-webmvc - webmvc, session, security-web
- slardar-sprint - hazelcast, security-conf, admin, actuator
- slardar-test - testing utility including login
3.2.Solution and Configuration
Slardar is configured by default according to the following architecture and performance,
- Nginx(reverse proxy), mainly post+json service
Undertowas the default Servlet containerHazelcastasCacheandSession- 80% service can
30msend, blocking factor0.9 8-core 3GHzcloud hosting, simulating10k*50requests, single application95th, response=2s,tps=2k-5k
3.3.SpringMvc Enhancement
Base on springMvc, Slardar provides potential capabilities and out-of-the-box features,
- concurrency control, multi-level caching, event publish/subscribe
- spring-boot-admin and actuator management and monitoring capability
- sentry log collection capability
- Terminal and Security's Context
- login, permission, session, token and other control capabilities
3.4.Preconfigured ThreadPool
SlardarAsyncConfiguration provides 6 pre-config Ttl threadpools, prefix and purpose are,
exec--spring.task.execution.properties- for
@Asyncmethod app-exec-forCallableRequestMappinglit-exec-AsyncHelper manually async
- for
task--spring.task.scheduling.properties for@Scheduledevent--wings.slardar.async.event.properties for Spring's Eventfast--wings.slardar.async.fast.properties for Wings fast task
reference,
- https://docs.spring.io/spring-framework/reference/web/webmvc/mvc-ann-async.html
- https://docs.spring.io/spring-framework/reference/integration/scheduling.html
- https://docs.spring.io/spring-boot/reference/features/task-execution-and-scheduling.html
3.5.More Sections
- Jackson Convention - Json conversion and i18n message
- Hazelcast Middleware - distributed session, caching, messaging
- Host Extend and URL Override - Override URL, Multiple Hosts and skinning
- Multiple Time and Lang - DateTime, Validation, Locale
- Session and Authn - Multiple logins, credentials, hierarchical permissions
- Multiple Caching and Event - Multi-level cache, lock, message
- Backend Protection - backend debounce, CAPTCHA, anti-tamper
- Backend Faq Topic - backend topic
