Skip to content

New test with a focus on server response and templating engine rendering #10345

@ruroru

Description

@ruroru

I would like to suggest a new test type, which would focus on the server response + template rendering, similar to how it is done in Fortunes test. But unlike in fortunes the database will not be queried on every request, but instead once (when the server starts for example). The advantage of having this setup is that frameworks can 100% focus on request and render and they will not be throttle by database connections. On top of it, there are quite a few frameworks in Fortune whose performance is "underwhelming" mainly because the wrong or incorrect or not optimal connection or pool setup.

The sequence diagram could look like

sequenceDiagram
   participant C as Client
   participant S as Server
   participant DB as Database
   participant TE as TemplatingEngine

   Note over S: Cache template context
   S->>+DB: Query context
   DB-->>-S: Context

   C->>+S: HTTP Request
   S->>+TE: Render(template, context)
   Note right of TE: Templating engine renders HTML
   TE-->>-S: HTML Output
   S-->>-C: HTTP Response

Loading

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions