background preloader

PHP

Facebook Twitter

Migrating from PHP 5.2.x to PHP 5.3.x. Json serialization/deserialization faster than protocol buffers? I was reading the The Book of JOSH and saw the following statement: “Json delivers on what XML promised. Simple to understand, effective data markup accessible and usable by human and computer alike. Serialization/Deserialization is on par with or faster then XML, Thrift and Protocol Buffers.” That seemed a bit too definite for my taste. There are so many variables that can affect the results that I was interested in more information, so I asked for it and eventually got an answer.

I had a brief look at the benchmark referenced and that was enough to come up with some talking points. Ok, so json doesn’t seem to be faster on deserialization and the size is almost 50% bigger (a big deal if the network is the bottleneck as is often the case). How about we replace that with content.toByteArray()? That’s more like it. That reduces some of the cost of object creation for protobuf, but it’s still substantially slower than json. What does this mean? Like this: Like Loading...

Optimization tips

AMF. Profiling. The PHP Scalability Myth | O'Reilly Media. By Jack Herrington 10/15/2003 PHP scales. There, I said it. The word on the street is that "Java scales and PHP doesn't. " The word on the street is wrong, and PHP needs someone to stand up and tell the truth: that it does scale. Those with a closed mind can head straight to the inevitable flame war located at the end of this article. Those with an open mind who are interested in taking their web development skills and putting them to use building applications in the cross-platform, easy-to-write, easy-to-maintain, scalable, and robust PHP platform, but were hesitant because of the scalability myth, should read on. It starts by looking at the term scalability. What is Scalability? There are a number of different aspects of scalability. These are all reasonable issues, and should be covered whenever you are choosing the development platform for any large project.

Language and Database Performance Another area of performance concern is in the connection to the database. Comparing Architectures. Amazon: Hey Spammers, Get Off My Cloud! - Security Fix. I am accustomed to receiving e-mail from Amazon.com, as I am a fiercely loyal customer who shops there quite frequently. But it took me by surprise this weekend to discover that mounds of porn spam and junk e-mail laced with computer viruses are actively being blasted from digital real estate leased to the e-commerce giant. I wasn't the only one who spotted it. Websense Security Labs issued an alert about the spam attacks on Monday, but it didn't name Amazon as the source.

The advisory rightly noted that it had discovered "a substantial number of spam messages utilizing a reliable social engineering trick. " The junk mail claims to have been sent from Microsoft, and urges the recipient to install an attached security update. "The [numeric Internet address] for these services can shift within minutes, so if you want to block spam sent from a dynamic address, blocking just one address is not feasible," Ramasubramanian said.

"Security is the natural prey of scale. Zend Server. Deliver Apps Rapidly, Iteratively, and Consistently Standardize packaging and deployment testing Automate app deployment, versioning, and rollback Instantly provision standardized app infrastructure Understand & fix production issues and iterate rapidly New in Zend Server 6.3: support for PHP 5.5, 5.4, & 5.3 How does Zend Server enable Continuous Delivery?