Yet another use of Phalcon

Embed Size (px)

DESCRIPTION

 

Text of Yet another use of Phalcon

  • 1. Yet another use of phalcon Phalcon
  • 2. About me Yuji Iwai @104 20122 : PHP(3y)/Perl(7y)/Python(1y)/Objective-C(1y) : symfony1.4/Silex/Codeigniter Phalcon: 1 Phalcon
  • 3. 3
  • 4. Phalcon 10
  • 5. 2013 AWS AWS:c1.mediam CPU Apache 1100MB CPU m1.large EC2
  • 6. CPU 30MB EC2: t1.micro/m1.small t2
  • 7. App Nginx + php-fpm PHP v5.4 (Non APC) Phalcon v1.3.1 Memcached fluentd Worker Upstart start-stop-daemon DynamoDB, SQS, SNS, RDS, ElastiCache(Redis)
  • 8. ini YAML RoutingAnnotationYAML Composer Volt coredump Symfony1.4 Phalcon
  • 9. Phalcon
  • 10.
  • 11. PSR-0 ComposerAutoloader Phalcon registerNamespace
  • 12. RoutingYAML
  • 13. ServiceProvider Laravel Silex ServiceProviderPhalcon DI Component Component ServiceProvider
  • 14. Application Application register Phalconhandle override boot
  • 15. ServiceProviderInterface
  • 16. CacheServiceProvider
  • 17. ServiceProvider
  • 18. ServiceProvider YAML index.php index.php Component
  • 19. ServiceProvider ServiceProvider database-service-provider volt-service-provider cache-service-provider aws-service-provider gaufrette-service-provider elasticsearch-service-provider ServiceProvider
  • 20. redirect return LocationStatusCode Route API app->useImplicitView(false) response->setContent($content) return
  • 21. useDynamicUpdate, keepSnapshots true Update 12 save/update snapshot SELECT save/update/delete model->getMessages() transaction->getMessages() PDO PDO::ATTR_STRINGIFY_FETCHES => false, PDO::ATTR_EMURATE_PREPARES => false $connection->affectedRows()
  • 22. 502 Bad Gateway Volt NullNull Fatal Error Core dump Null
  • 23. C C PHP https://github.com/scento/phalcon-php core dump
  • 24. Phalcon
  • 25. phalcon-devtools composer create-project create-project
  • 26. Phalcon + AWS http://www.sonicmoov.com/recruit/