wiki:FrontController

Version 2 (modified by Erik Roos, 13 years ago) (diff)

--

FrontController design

Request/response database usage (pseudocode)

Flow in timeLayerLayerLayerWho
ContextSessionRequest
Once:DataSource(ConnPool=100) or EntityManagerFactory() FC init()
Begin <- HttpRequest User
.. <- CreateDatabase(Conn=1) or CreateDatabase(EntMan) FC
.. Subsequent requests: getDatabase, reuse existing connectionless db FC
.. GetConnection(1) or GetEntityManager() FC
.. ConnPool-1 FC
.. Connection conn -> FC
.. Database.useConnection(conn) FC
.. Response = Service.handleRequest() Application service
.. ConnPool+1 <- Close connection FC
.. Send response -> FC
End Get response User