1. Open Rule-Application, set pyIsConstellationApp=true, pxUseDXAPI=true. Save the app record.
2. Execute pzRegisterConstellationAppAsOAuth2Client in the context of Rule-Applicaiton.
3. It should create oAuth client registration record.
1. Open Rule-Application, set pyIsConstellationApp=true, pxUseDXAPI=true. Save the app record.
2. Execute pzRegisterConstellationAppAsOAuth2Client in the context of Rule-Applicaiton.
3. It should create oAuth client registration record.
Index unique scan
It occurs when the db looks up a single unique row and is able to stop searching the very instant that row is found. No sequential reading.
Two strict requirements - A unique constraint exists (PK, Unique), An equality operator is used.
Index range scan
Accesses a continuous segment of pre-sorted index entries using leading columns.
The database locates the starting value in an index and reads consecutive leaf blocks sequentially until it hits the upper boundary of the range
Requires the query's WHERE clause to reference the leading (leftmost) column of a composite index
Best used for range operators (BETWEEN, <,>,>=,<=) or equality conditions (=) on primary prefix of the index. (works well if the first column in the index where clause applied with equality check, and rest with ranges)
Highly efficient and selective when fetching small percentage of total table rows
Index skip scan
The database finds distinct values of the omitted leading column and performs a separate mini-range scan for each distinct prefix value.
Triggers on a composite index even when the leading column is missing from the WHERE clause
Best used for composite indexes where the leading column has low cardinality (very few distinct values like gender, status_code..etc) and subsequent columns are well-filtered.
Can prevent expensive full table scans, but can degrade performance significantly if the skipped leading column has high cardinality because it multiplies the number of internal lookups.
Index full scan
An index full scan is a DB operation where the system reads every single block of a B-tree index from start to finish in sorted key order.
When and shy it is used? Avoiding sorts : (1) The optimizer chooses an index full scan when a query has an ORDER BY or GROUP BY clause that matches the sorted columns in the index. (2) If all the columns requested by the query exist inside the index, the db can process the entire request without touching the main base table
Suppose you need to process 100,000 transactions per second.
Every request:
The API server becomes the bottleneck.
Messages are:
Kafka is designed for extremely high throughput.
✅ Kafka
Example:
Scaling often means:
All consumers hit the same API.
You can independently scale:
If traffic doubles:
✅ Kafka
If a downstream service is unavailable:
Messages remain in the broker:
✅ Kafka
Suppose an order event must be consumed by:
Order Service
|
|--> Billing API
|--> Inventory API
|--> Analytics API
|--> Notification API
Many network calls.
Order Service --> Kafka Topic
Billing Consumer
Inventory Consumer
Analytics Consumer
Notification Consumer
Single publish, many consumers.
✅ Kafka
Good for:
Good for:
| Aspect | REST API | Kafka |
|---|---|---|
| Communication | Synchronous | Asynchronous |
| Latency | Very low (milliseconds) for direct request | Slightly higher end-to-end due to broker hop |
| Throughput | Limited by API server capacity | Extremely high (millions of messages/sec possible) |
| Scalability | Scale API servers horizontally | Scale producers, brokers, and consumers independently |
| Reliability | Client retries required | Built-in persistence and replay |
| Backpressure handling | Difficult | Native consumer lag handling |
| Fan-out to multiple consumers | Multiple API calls needed | Publish once, consume many times |
| Real-time response | Excellent | Not ideal for immediate response |
https://forums.pega.com/t/theme-cosmos-open-work-object-in-full-portal-on-copy-sharable-link/635
Build out the content for this agent instructions file for this project. This is an instructions file specifically for the LLM's to adhere to the coding standards for this project. Agent instructions will be separated out into separate .md markdown files localted in the /docs directory
OnTimeout, time-out passivation occurs. Time-out passivation is required for high availability environments. To prevent time-out passivation, set this to Never.Initialization/PersistRequestor prconfig.xml setting or Dynamic System Setting should be set to "OnTimeout". When set to AtInteractionEnd, the requestor is passivated at the end of each user interaction.pr_sys_context database table. The daemon saves page details as an instance of the System-SavedPages class in the pr_page_store database table.