Q1) .Mention what is Apache Kafka? Ans: Apache Kafka is a publish-subscribe messaging system developed by Apache written in Scala. It is a distributed, partitioned and replicated log service. Q2). Mention what is the traditional method of message transfer? Ans: The traditional method of message transfer includes two methods Queuing: In a queuing, a pool of consumers may read message from the server and each message goes to one of them • Publish-Subscribe: In this model, messages are broadcasted to all consumers Kafka caters single consumer abstraction that generalized both of the above- the consumer group. Q3). Mention what is the benefits of Apache Kafka over the traditional technique? Ans: Apache Kafka has following benefits above traditional messaging technique Fast: A single Kafka broker can serve thousands of clients by handling megabytes of reads and writes per second • Scalable : Data are partitioned and streamlined over a cluster of machines to en
1.What is a Framework ? In software development, a framework is a defined support structure in which another software project can be organized and developed. An abstract design Set of common functionality Developed for a particular domain 2.How to disable layout from controller? $this->_helper->layout()->disableLayout(); Disable Zend Layout from controller for Ajax call only if($this->getRequest()->isXmlHttpRequest()){ $this->_helper->layout()->disableLayout(); } 3.How to change the View render file from controller? function listAction(){ //call another view file file $this->render(“anotherViewFile”); } 4.How to protect your site from sql injection in zend when using select query? $select = $this->select() from(array(‘u’ => ‘users’), array(‘id’, ‘username’)) where(‘name like ?’,”%php%”) where(‘user_id=?’,’5′) where(‘rating<=?’,10); 5.How to check post method in zend framework? if($this->getReque