Home - noradle/noradle-http GitHub Wiki

Welcome to the noradle-http wiki!

功能作用

形成请求头数据

  • 将 http request header 转成 oracle 容易读取的格式
  • 将 http 请求信息(来自request line,header, body如 json) 中的信息分解解析成 name-value
  • 配置 noradle pl/sql 执行环境信息,特别是确定执行哪个存储过程

响应处理

  • 格式转换:直接转换(resultsets to JSON), 关联模板转换 (consolidate)
  • server-side cache 支持
  • GZIP

可以考虑,请求进入的架构可以再展开些

  • 允许通过 before_filter(req) 来添加 req.ex.ns OBJECT
  • before filter can reponse and not call next
  • noradle.http handler will pack all req.ex.ns OBJECT to oracle request header name-value pairs

具体的 before filter 可能有,参考 nginx modules

  • 做权限验证、获取身份信息,像 nginx/fcgi 似得
  • 获取会话数据(在对应的 after filter 中还会保存新设置的会话数据)
  • 做路由和环境,由原始的请求信息派生成定位执行那个存储过程,哪些环境信息,如获取客户端IP

目前的 noradle-http 已经大体上采用了 after filter 架构,用来转换响应头和响应体。

也可以考虑通过其他 http2application 协议来服务

  • SCGI
  • FCGI
    • FCGI give the oppotunity that nginx make connection to bind to oracle server process fixedly,dispatch performance is higher