Having a good time with Phalcon creating APIs still. Have module checking api keys, creating list of available modules, including available event notifications and hooks, checks user sessions on CRUD functions. Does all these processes and still returns data quickly. My entire goal was to feel I built a custom API system, which is a bit harder to accomplish using pre-defined frameworks that aren't as fleixble as Phalcon. Example responses from address table, i have run against 20,000 articles and still great speed.
No Cache
{
"status": "200",
"response": "OK",
"message": "48 Record(s) Found.",
"records": {
"per_page": 20,
"current": 1,
"first": 1,
"before": 1,
"next": 2,
"last": 3,
"total_pages": 3,
"total_items": 48
},
"meta": {
"method": "GET",
"module": "address",
"controller": "index",
"action": "index",
"responseTime": "0.0158 seconds",
"memoryUsage": "0.93 mb"
}
}
Cache response
{
"status": "200",
"response": "OK",
"message": "Records Found from Cache.",
"records": {
"per_page": 20,
"current": 1,
"first": 1,
"before": 1,
"next": 2,
"last": 3,
"total_pages": 3,
"total_items": 48
},
"meta": {
"method": "GET",
"module": "address",
"controller": "index",
"action": "index",
"responseTime": "0.0071 seconds",
"memoryUsage": "0.79 mb"
}
}