Skip to main content

Posts

Showing posts from June, 2026

AWS SNS (Simple Notification Service) compared to Apache Kafka

  AWS SNS (Simple Notification Service) and Apache Kafka serve fundamentally different messaging architectures . SNS is a fully managed pub/sub notification service designed for cloud-native fan-out and microservices. Kafka is a distributed streaming platform engineered for massive throughput, data pipelines, and event replayability Key Architectural Differences Message Routing vs. Streams: SNS pushes notifications instantly to endpoints like SQS, AWS Lambda, or HTTP/S URLs. Kafka acts as a single source of truth, storing continuous event data sequentially in partitions so consumers can read and re-read streams at their own pace State & History: SNS is stateless. If a microservice fails to receive a notification, the message is lost unless the target was an SQS queue. Kafka maintains message state, making it ideal for real-time analytics, complex event processing, and rebuilding application state from historical logs Operations: SNS requires no cluster management, scaling au...

Authentication & Authorization Framework

 Authentication - Who the user is (Valid Identity)  Basic Auth Methods Basic - Auth in requset header (Authorization - Basic<base64 encoded credential > Digest API Keys - API Key (unique key for each client through header) (Authorization: ApiKey abc123xyz                                                  or X-API-Key: abc12345xredt                          APiKeys are stored in db with hash Session web approach - session storage - user logs in with credentials 2. Token Based Auth Bearer & JWT Tokens Access & Refresh Tokens 3. OAuth2 and OIDC OAuth2 OpenId Connect 4. SSo & Identity Protocols SSO (SAML, OIDC, OAuth2)  

Claude Code - use free model

Use claude code free models, follow below steps: 1. Install claude code cli (with node + npm)           npm install -g @anthropic-ai/claude-code 2. Configure Claude Code using a project-level settings file at .claude/settings.local.json in your project root: Add below in file {   "env": {     "ANTHROPIC_BASE_URL": "https://openrouter.ai/api",     "ANTHROPIC_AUTH_TOKEN": "<your-openrouter-api-key>",     "ANTHROPIC_API_KEY": "",     "CLAUDE_CODE_ENABLE_GATEWAY_MODEL_DISCOVERY": "1"   },        "model": "openrouter/free",        "theme": "dark" } replace <your-openrouter-api-key> with actual openrouter api key generated at the openrouter.ai  1. MCP server 2. Skills VsCode Addon : @ to select different path - folders/subfolders/files alt M to keep edit mode