Softanza
DémarrerEnglish
Softanza
Référence · Systèmes et exécution

Concurrence et distribution

32 fonctions dans 18 classes, groupées par ce qu'elles font, chacune avec l'explication que la bibliothèque donne d'elle-même.

Le récit de ce domaine, pour un lecteur général : ce qu'un artisan en fait, un exemple exécuté et ses couloirs notés, est sur sa page de la Plateforme.

Les fonctions, par ce qu'elles font

Tester et vérifier

  • CanAdmit admission (the load-isolation primitive) dans stzWorkerProfile
  • Has queries dans stzFacetCatalog
  • IsConnected No global init required for the engine HTTP client. dans stzNetwork

Trouver

  • LastTraceId The trace id assigned to the most recent Route (correlates the front host's record with the worker's _trace on the wire). dans stzAppCluster
  • LastCallMs Duration of the last FederatedCall, ms (gates + signing + transport; refusals cost what the gates cost). dans stzComputeFederation
  • LastSignature The envelope [ :kid, :ts, :nonce, :sig ] of the most recent SIGNED FederatedCall (empty [] if the last call was unsigned). dans stzComputeFederation

Compter et mesurer

Remplacer et modifier

  • SetRateLimit Rate limit a facet at the front door: nRatePerSec sustained with a bucket of nBurst (the largest instantaneous burst absorbed). A facet with no SetRateLimit is UNLIMITED. Requests over the limit are shed with a -429 status before any worker is touched. dans stzAppCluster
  • SetCircuitBreaker Circuit breaker: after nThreshold consecutive failures a worker's circuit OPENS (it is skipped for nCooldownMs, then half-open: one probe re-closes on success or re-opens on failure). dans stzAppCluster
  • SetAuth HTTP auth (Basic by default; libcurl base64-encodes + handles the challenge). Use SetAuthType for digest/ntlm/negotiate/any. dans stzHttpClient
  • SetBearer Bearer / OAuth2 token auth. dans stzHttpClient
  • SetTimeout ── timeouts (engine-backed) ───────────────────────────── These now drive the custom HTTP/1.1 client's per-socket and connect deadlines via the engine, replacing the slice-2 no-ops. dans stzHttpClient
  • SetProxyAuth Proxy credentials, "user:pass". dans stzHttpClient
  • SetUserAgent stzNetwork.init handles its own fields. ── headers / cookies ──────────────────────────────────── dans stzHttpClient
  • SetClientCert mTLS: client certificate + private key (file paths, PEM). dans stzHttpClient
  • SetCookieFile Persistent cookies: read from / write to a Netscape cookie file. dans stzHttpClient
  • SetTraceParent ── distributed tracing (W3C Trace Context) ────────────── Inject a `traceparent` header so downstream services can correlate this request into a single distributed trace (Tier 2 observability). dans stzHttpClient
  • SetDefaultTimeouts Set the process-wide engine defaults (connect / request / idle in ms). 0 leaves a field unchanged. Affects every client. dans stzHttpClient
  • SetMutualTls Run the federation transport over WIRE mTLS: every FederatedCall now goes over a mutually-authenticated, encrypted mbedTLS channel -- this node PRESENTS pcCert/pcKey and VALIDATES the peer's server cert against pcCa (slices 2-3). Combined with governance (SLA) + request signing (per-request auth), this is the full node-to-node security stack: encrypted + mutually cert-authenticated + signed + governed. dans stzComputeFederation

et 6 autres dans la référence

Ajouter

  • AddProfile declaring the fleet composition ------------------------------------ Declare nWorkers processes of a profile (capability tag + caps). One @aFleet row per worker is created NOW (port assigned at Start), so FleetSize/WorkersOf are correct before and after launch. dans stzAppCluster
  • AddFacet Add a profile for a facet DEFINED IN THIS POOL'S CATALOG: capabilities, provenance and external tool are taken from the catalog. dans stzWorkerPool
  • AddActor Register an actor identity (stzSystemActor): the verified key id names the actor whose capability KINDS gate admitted tags. dans stzNode
  • AddKeyword TIER 2: the capability-lexical vocabulary -------------------------- Extend the synonym lexicon (a word that hints a facet). Capability names are matched automatically; keywords add natural phrasing. dans stzRequestClassifier

Parcourir et appliquer

  • RunLocal the running topology ----------------------------------------------- Every node = a child OS process on this machine, under REAL supervision, over the REAL wire (loopback). Same semantics as a multi-machine run; only the latency differs. (D4 scope: the first Supervise() group sets the strategy; every node is supervised.) dans stzNodeApp
  • Run running ------------------------------------------------------------ Thread pInput through every stage in order; each stage's output feeds the next. Returns the final output. Records a per-stage trace. A stage that RAISES is CONTAINED: the failure is traced, the facet slot is released (no leak), the pipeline HALTS and returns NULL, and Why()/ Failed() explain -- one bad stage never crashes the whole pipeline. dans stzComputePipeline
  • RunBatch Run many inputs through the WHOLE pipeline; returns a result list (same order). The trace reflects the LAST input. dans stzComputePipeline

Les explications sont celles que la bibliothèque donne d'elle-même, en anglais, lues dans ses commentaires de documentation le 2026-10-01 04:14, from the library at commit 0e72e2e2c, by the library's own stzSelfDoc over 635 class sources.

Les classes de ce domaine

Les narrations sur ce domaine

Aucune narration n'est encore rattachée à ce domaine.