Description
Introduction
Modern enterprises rely heavily on RESTful services and web-based integrations to exchange real-time and batch data across systems. While kdb+ is widely known for ultra-fast time-series analytics, integrating it with REST APIs and web applications unlocks powerful use cases such as:
- Real-time financial dashboards
- Data ingestion from external services
- Microservices architecture integration
- Cloud-native deployments
- Web-based analytics platforms
This training provides a comprehensive, hands-on approach to building, consuming, and deploying REST APIs with kdb+ using q. Participants will learn how to expose kdb+ data via HTTP endpoints, integrate with external web services, and design scalable API-driven architectures.
Prerequisites
- Basic understanding of kdb+ & q
- Knowledge of:
- Tables, dictionaries, and queries in q
- IPC concepts in kdb+
- Basic understanding of:
- REST architecture principles
- HTTP methods (GET, POST, PUT, DELETE)
- JSON data format
- Familiarity with Linux/command line (recommended)
- Basic programming knowledge (Python/JavaScript is helpful but not mandatory)
Table of Contents
Module 1: REST Fundamentals & Web Architecture
- Introduction to REST architecture
- HTTP protocol overview
- HTTP methods and status codes
- Stateless communication principles
- JSON and data exchange formats
- REST vs IPC in kdb+
Module 2: HTTP Capabilities in kdb+
- Built-in web server capabilities in kdb+
- Using
.z.ph(HTTP handler) - Understanding
.z.ppand request parsing - Handling GET and POST requests
- Query string parameters
- Response formatting
Module 3: Building REST APIs with q
- Designing API endpoints
- Mapping URLs to q functions
- Returning data as JSON
- Custom HTTP response headers
- Error handling and status codes
- Logging and request tracking
Hands-on Lab:
Create a REST API to fetch time-series data from a kdb+ table.
Module 4: JSON Handling in q
- JSON parsing in q
- Serializing tables to JSON
- Nested JSON structures
- Performance considerations
- Handling large payloads
Module 5: Consuming External REST APIs
- Making HTTP requests from q
- Calling external APIs
- Authentication handling
- Parsing API responses
- Data ingestion workflows
Hands-on Lab:
Integrate kdb+ with a third-party market data API.
Module 6: Web Application Integration
- Integrating kdb+ with frontend applications
- Connecting to JavaScript/React dashboards
- Real-time data updates
- WebSocket vs REST considerations
- Microservices integration patterns
Module 7: Security & Authentication
- API authentication methods
- Token-based authentication (JWT concepts)
- SSL/TLS setup
- Access control strategies
- Protecting sensitive financial data
Module 8: Performance & Scalability
- Optimizing API response time
- Caching strategies
- Load balancing concepts
- Scaling API-enabled kdb+ services
- Monitoring and logging
Module 9: Deployment & Production Setup
- Deploying HTTP-enabled kdb+ processes
- Reverse proxy configuration (NGINX overview)
- Dockerizing kdb+ API services
- Cloud deployment considerations
- CI/CD integration







Reviews
There are no reviews yet.