Package-level declarations

Types

Link copied to clipboard
@Configuration(proxyBeanMethods = false)
class CatalogAuthorization

Who changes the catalog. Its aggregates belong to the tenant: every caller reads every product, and the catalogAuthorizer keeps the buyers, owner-level callers, from changing them. An employee, a tenant-level caller, changes it: in development, a Wow-User without a Wow-Owner (the host's development callers); behind the CoSec gateway (the cosec profile), a principal of the role wow.cosec.tenant-level.roles: employee.

Link copied to clipboard
@Configuration(proxyBeanMethods = false)
class CatalogElasticsearch

The response timeout of the client Spring Boot builds of spring.elasticsearch.*, which the catalog's Elasticsearch store writes and reads through (its search and search-only profiles), as Operate › Elasticsearch tells an operator to set it ("A server that stops answering"). Boot's client has none, and its socket timeout does not end an exchange on a connection the pool reuses: a paused Elasticsearch would hold the client's connections until it answered, while the store's operation-timeout fails only the callers. With it, a request with no answer within the response timeout fails and frees its connection. The timeout is RESPONSE_TIMEOUT, which the search and search-only profiles set (application.yaml), 30 seconds by default: the store's operation-timeout, so a request is never ended while its caller still waits for it, and none outlives its caller by more. Keep it at or above the store's operation-timeout, and above the longest request the store makes (a search, the event index's access stamp).

Link copied to clipboard
@Configuration(proxyBeanMethods = false)
class CatalogRoutes

The instances of the catalog's service routes, which the routes' generated binding finds among the host's beans.

Link copied to clipboard
@SpringBootApplication(proxyBeanMethods = false)
class CatalogServer

The eShop's catalog service on the Wow host: the host finds the product model through eshop-catalog-domain's binding index and serves its routes on the public port and the cluster on the internal one. It runs on the memory backend.

Functions

Link copied to clipboard
fun main(args: Array<String>)