Package-level declarations

Types

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

Who changes the stock. A stock belongs to the tenant: every caller reads it, and the inventoryAuthorizer keeps the buyers, owner-level callers, from changing it, as the catalog keeps them from changing a product. An employee, a tenant-level caller, receives stock: in development, a Wow-User without a Wow-Owner; behind the CoSec gateway, a principal of the role employee. The order process's reservations reach the stock on the context's command topic, outside admission, and a service's call on the internal port is a service identity's: the authorizer refuses neither.

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

The eShop's inventory service on the Wow host: the host finds the stock model through eshop-inventory-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 by default, on PostgreSQL with the postgres profile (spring.datasource.*), and takes the ordering context's commands from Kafka with the kafka profile.

Functions

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