Package-level declarations

Types

Link copied to clipboard

How the access attributes are stamped over the histories: by the built-in subscription wow.access, in stamps of a bounded number of streams, remembering the last attributes of a bounded number of aggregates; and by the access walk of each aggregate type, a page of aggregates at a time, at a bounded rate and a bounded share of the time.

Link copied to clipboard
@AutoConfiguration(before = [WowAutoConfiguration::class])
@ConditionalOnClass(name = ["com.zaxxer.hikari.HikariDataSource"])
@ConditionalOnMissingClass(value = ["org.springframework.boot.jdbc.autoconfigure.DataSourceAutoConfiguration"])
@ConditionalOnProperty(prefix = "spring.datasource", name = ["url"])
class DataSourceAutoConfiguration

The application's database connection pool, from its properties alone: when spring.datasource.url is set, HikariCP is on the class path, the application has no DataSource bean and no Spring Boot JDBC (spring-boot-jdbc, whose own auto-configuration then makes it), the host makes a HikariDataSource of spring.datasource.url, .username, .password and .driver-class-name, with HikariCP's settings under spring.datasource.hikari.* as Boot reads them; closed with the context. Its pool opens at the first connection. The backend then follows the DataSource bean as it follows the application's (wow.backend); without the URL the host connects to no database.

Link copied to clipboard
class HostBackends @InternalWowApi constructor(val type: String?, shared: List<() -> Unit> = emptyList(), val stores: Map<String, Store> = emptyMap(), val layout: StoreLayout? = null, val local: Boolean = type == StoreTypes.MEMORY, open: (context: String, schemas: MutableList<() -> Unit>) -> ContextBackends) : AutoCloseable

The backends of the node: the BackendFactory the me.ahoo.wow.runtime.node.ServiceNode opens each context's stores from, remembering what it opened, so that the state reads find a context's stores and the backend lifecycle (WowLifecycles.BACKENDS_PHASE) creates their schemas before the node starts.

Link copied to clipboard
Link copied to clipboard

The in-memory provider's settings, wow.memory.*, as each provider has its group (wow.kafka.*, wow.mongo.*).

Link copied to clipboard
@AutoConfiguration(before = [WowAutoConfiguration::class])
@ConditionalOnClass(name = ["me.ahoo.wow.mongo.MongoStoreProvider"])
@ConditionalOnMissingClass(value = ["org.springframework.boot.mongodb.autoconfigure.MongoAutoConfiguration"])
@ConditionalOnProperty(value = ["spring.mongodb.uri"])
class MongoClientAutoConfiguration

The application's MongoDB client, from its properties alone: when wow-mongo is on the class path, spring.mongodb.uri is set, the application has no MongoClient bean and no Spring Boot MongoDB (spring-boot-mongodb, whose own auto-configuration then makes it), the host makes a MongoClient of the URI; closed with the context. The MongoDB stores then open over it, in the database their database option names.

Link copied to clipboard
@ConditionalOnClass(name = ["me.ahoo.wow.mongo.MongoStoreProvider"])
@Import(value = [BootMongoPoolGauge::class])
class MongoPoolAutoConfiguration

The pool gauge of the MongoDB stores (MongoPoolGauge), when the application has wow-mongo: added to the MongoClient the host makes (MongoClientAutoConfiguration) or Spring Boot makes (through its settings customizer), so the stores bound their queries by the client's pool and read their write pressure from it. An application that builds its own client adds the gauge itself (MongoPoolGauge.applyTo).

Link copied to clipboard

The events queries of a store or an aggregate type: unpinned, whether one that names no aggregate runs, over the store's and wow.query.events.unpinned.

Link copied to clipboard

Where the snapshots are, and how the snapshot maintenance runs. Each aggregate type keeps its snapshots on one store; a store that replaces it is filled from the log, its snapshot queries answering rebuilding meanwhile.

Link copied to clipboard

How an in-place rebuild of the snapshots rewrites them (wow.snapshot.rebuild.*).

Link copied to clipboard

How one store's query bound adapts to its write pressure (wow.stores.<name>.query.adaptive.*): floor and ceiling over wow.query.adaptive.*.

Link copied to clipboard

A named store instance (wow.stores.<name>): its type, memory, postgres, mongo or a community backend's (the type of its store provider), how it manages the framework's schema (ddl) and how its queries run (query). Every other key of the store is a setting its provider declares, at the same level (wow.stores.<name>.data-source, wow.stores.<name>.client): the host reserves RESERVED alone, and a key no provider of the store's type declares fails the start, naming the ones it does. Two stores of one type may serve different databases; two log stores may not share one.

Link copied to clipboard

The store providers of the node, by type: the memory provider built into the host, those on the classpath (ServiceLoader: the built-in PostgreSQL and MongoDB ones, a community backend's), and the application's StoreProvider beans, each taking the place of the one of its type before it. A store's queries are its own facet (me.ahoo.wow.query.store.StoreQueries).

Link copied to clipboard

How one store's queries run (wow.stores.<name>.query.*): maxConcurrent, how many run at once, over wow.query.max-concurrent (beyond it a query is wow.query.busy, 429; 0 for no bound); maxWait and maxQueued, how long and how many queries beyond it wait for a permit, over wow.query.max-wait and wow.query.max-queued; events, its events queries; adaptive, how its bound adapts to its write pressure, over wow.query.adaptive.*.