1
votes

I'm looking at amazon's DynamoDB service to store logs from our application (specifically using Zend_Log writers) into a DynamoDB database.

Right now, there's no native support for DynamoDB in zend framework, and looks like amazon changed their signature handling to a newer version ( http://docs.amazonwebservices.com/general/latest/gr/signing_aws_api_requests.html ), which means that zend framework can't even sign API requests for amazon's new services.

Anyone is familiar with Zend_Log_Writer that can work with DynamoDB service? or has some pointers on implementing such a writer?

I'm also considering their session management handler using Zend_Session ( http://docs.amazonwebservices.com/AWSSDKforPHP/latest/index.html#m=AmazonDynamoDB/register_session_handler ). But, again, there's no native support in zend framework for it.

1

1 Answers

1
votes

If Zend Framework doesn't support DynamoDB, then you will need to create a custom adapter that extends Zend_Db_Adapter_Abstract and implements all of the methods appropriately for DynamoDB. Once that is completed, you can use it just like any other Zend_Db object in your application.

Then you can create a custom log writer by extending the Zend_Log_Writer_Abstract class and implementing the abstract methods to use your DynamoDB adapter for writing the data.