Apache API Notes - PowerPoint PPT Presentation

About This Presentation
Title:

Apache API Notes

Description:

Title: Palant r: Raising Awareness among Configuration Management Workspaces Author: Justin Erenkrantz Last modified by: Justin Erenkrantz Created Date – PowerPoint PPT presentation

Number of Views:48
Avg rating:3.0/5.0
Slides: 8
Provided by: Justin408
Category:

less

Transcript and Presenter's Notes

Title: Apache API Notes


1
Apache API Notes
  • Robert S. Thau
  • (Presented by Justin Erenkrantz)

2
Introduction
  • Allow third-parties to extend product
  • Expose as much as possible
  • C Modules
  • Provides hooks and handlers
  • May execute arbitrary code
  • May be controlled by configuration directives

3
Approach
  • Hooks
  • Run at well-defined stages of execution
  • Run for all requests
  • Handlers
  • Responsible for serving content
  • Only run for specific requests
  • May accept or decline request

4
Apache 1.3 Hook Stages
  • Translate URI-gtFile
  • Check user
  • Auth check
  • Access check
  • Type check
  • Fixer Upper
  • Logger
  • Header Parser
  • Child Init
  • Child Exit
  • Post Read Request

5
Apache 1.3 Data Model
  • Memory Pools
  • No malloc()/free()
  • Used to optimize memory allocation
  • Cleanups
  • request_rec, conn_rec
  • Core data structures
  • Access to headers, file structure

6
Strength and Weaknesses
  • Proved worth
  • Lots of functionality never envisioned
  • Fairly robust
  • Tied to HTTP
  • Tied to files
  • Inability to layer
  • No ability to thread

7
Observations
  • Apache HTTP Server 2.0 addresses some of these
    concerns
  • Filters and Bucket Brigades
  • Threaded processing
  • Multi-protocol support
  • Requires rewrite of modules
Write a Comment
User Comments (0)
About PowerShow.com