Skip to main content

WP tuning p2 (API), Lumen, Laravel codepipeline Beanstalk

https://deliciousbrains.com/comparing-wordpress-rest-api-performance-admin-ajax-php/
https://stackoverflow.com/questions/3338220/how-to-simulate-high-traffic-load-on-a-web-application
http://www.opensourcetesting.org/category/performance/page/2/
https://jmeter.apache.org/usermanual/get-started.html#non_gui

curl -sH 'X-Papertrail-Token: YOUR-HTTP-API-KEY' https://papertrailapp.com/api/v1/archives.json |
  grep -o '"filename":"[^"]*"' | egrep -o '[0-9-]+' |
  awk '$0 >= "YYYY-MM-DD" && $0 < "YYYY-MM-DD" {
    print "output " $0 ".tsv.gz"
    print "url https://papertrailapp.com/api/v1/archives/" $0 "/download"
  }' | curl --progress-bar -fLH 'X-Papertrail-Token: YOUR-HTTP-API-KEY' -K-

https://help.papertrailapp.com/kb/how-it-works/permanent-log-archives/#usage-example

https://medium.com/@avishayil/deploy-to-elastic-beanstalk-using-bitbucket-pipelines-189eb75cf052
https://hackernoon.com/aws-vs-heroku-cloud-platform-comparison-for-2017-5f2194c0673e

seem kool
https://thomasgriffin.io/a-creative-approach-to-efficient-and-scalable-wordpress-api-endpoints/

https://www.slimframework.com/2015/04/14/lumen.html
https://www.adampatterson.ca/2015/using-wordpress-with-lumen/
https://logmatic.io/blog/youre-doing-php-logging-wrong/

oh not what I want. I want auto deploy codepipeline use $eb deploy and ELB DSL config.
https://medium.com/@sinsin_78919/https-medium-com-sinsin-78919-how-to-setup-lumen-aws-elastic-beanstalk-basic-26ef8b3eb380

https://aws.amazon.com/cloudfront/faqs/#Does_Amazon_CloudFront_cache_POST_responses

https://stackoverflow.com/questions/3327425/when-to-use-amazon-cloudfront-or-s3
https://stackoverflow.com/questions/19705474/is-it-possible-for-cloudfront-to-cache-rest-api-calls
https://docs.aws.amazon.com/vpc/latest/peering/vpc-peering-basics.html

5 or more type of cache + EC2 combinations.
https://docs.aws.amazon.com/AmazonElastiCache/latest/mem-ug/elasticache-vpc-accessing.html


Some cool item here
Custom Docker image for specific Laravel, hosted on ECR.
https://hackernoon.com/laravel-on-aws-a-reference-architecture-a680755130d0

Live .env hosted on private S3 (seem complex) but best way to handle this live .env ?
http://blog.goforyt.com/laravel-5-aws-elastic-beanstalk-production-guide/
Remember that run php artisan generate/migrate many time may corrupt DB in some article, so this is where Beanstalk ENV shine and why it matter.

04supervisor.config => queue worker (can used for µ service ?)

Cool, alphabet order execution
https://deliciousbrains.com/scaling-laravel-using-aws-elastic-beanstalk-part-3-setting-elastic-beanstalk/
Many think like Apache/Nginx vhost order (seem not documented too) but understandable/guest since we are software developer and this order can be guested.

Continue RTFM
https://docs.aws.amazon.com/codedeploy/latest/userguide/welcome.html

Temporary use $ eb deploy --staged
And add NewRelic
New relic suggest config not work.
Here my boss config and work:
packages:
yum:
newrelic-php5: []
rpm:
newrelic: http://yum.newrelic.com/pub/newrelic/el5/x86_64/newrelic-repo-5-3.noarch.rpm
commands:
configure_new_relic:
command: newrelic-install install
env:
NR_INSTALL_SILENT: true
NR_INSTALL_KEY: new_relic_key_here

https://continuousphp.com/tutorial/wordpress-elastic-beanstalk/

Comments

  1. Laravel Development Company, Get a free quote for laravel web development requirement from a leading Laravel Development Company. Discuss your web project with us to get large discounts...Contact us : +91-9806724185 or Contact@expresstechsoftwares.com

    ReplyDelete
  2. This is very helpful information. Thank for sharing this post. Looking forward to read more.
    Web Design and Development Company

    ReplyDelete

Post a Comment

Popular posts from this blog

Rand mm 10

https://stackoverflow.com/questions/2447791/define-vs-const Oh const vs define, many time I got unexpected interview question. As this one, I do not know much or try to study this. My work flow, and I believe of many programmer is that search topic only when we have task or job to tackle. We ignore many 'basic', 'fundamental' documents, RTFM is boring. So I think it is a trade off between the two way of study language. And I think there are a bridge or balanced way to extract both advantage of two method. There are some huge issue with programmer like me that prevent we master some technique that take only little time if doing properly. For example, some Red Hat certificate program, lesson, course that I have learned during Collage gave our exceptional useful when it cover almost all topic while working with Linux. I remember it called something like RHEL (RedHat Enterprise Linux) Certificate... I think there are many tons of documents, guide n books about Linux bu

Martin Fowler - Software Architecture - Making Architecture matter

  https://martinfowler.com/architecture/ One can appreciate the point of this presentation when one's sense of code smell is trained, functional and utilized. Those controlling the budget as well as developer leads should understand the design stamina hypothesis, so that the appropriate focus and priority is given to internal quality - otherwise pay a high price soon. Andrew Farrell 8 months ago I love that he was able to give an important lesson on the “How?” of software architecture at the very end: delegate decisions to those with the time to focus on them. Very nice and straight-forward talk about the value of software architecture For me, architecture is the distribution of complexity in a system. And also, how subsystems communicate with each other. A battle between craftmanship and the economics and economics always win... https://hackernoon.com/applying-clean-architecture-on-web-application-with-modular-pattern-7b11f1b89011 1. Independent of Frameworks 2. Testable 3. Indepe