Skip to main content

Posts

RESTful Web services: Basics

Representational State Transfer (REST) has gained widespread acceptance across the Web as a simpler alternative to SOAP- and Web Services Description Language (WSDL)-based Web services. Key evidence of this shift in interface design is the adoption of REST by mainstream Web 2.0 service providers—including Yahoo, Google, and Facebook—who have deprecated or passed on SOAP and WSDL-based interfaces in favour of an easier-to-use, resource-oriented model to expose their services. Basics Fundamental REST didn't attract this much attention when it was first introduced in 2000 by Roy Fielding at the University of California, Irvine, in his academic dissertation, "Architectural Styles and the Design of Network-based Software Architectures," which analyzes a set of software architecture principles that use the Web as a platform for distributed computing. When it's attracting this much attention, a concrete implementation of a REST Web service follows four basic design p

Why NoSql come into the picture ?

We increasingly live in a world where data doesn’t fit nicely into the tidy rows and columns of an RDBMS. Mobile, social, and cloud computing have spawned a massive flood of data. 80 percent of all enterprise data as unstructured. What's more, unstructured data is growing at twice the rate of structured data. As the world changes, data management requirements go beyond the effective scope of traditional relational databases. The first organizations to observe the need for alternative solutions were Web pioneers, government agencies, and companies that specialize in information services. Increasingly now, companies of all stripes are looking to capitalize on the advantage of alternatives like NoSQL and Hadoop: NoSQL to build operational applications that drive their business through systems of engagement, and Hadoop to build applications that analyze their data retrospectively and help deliver powerful insights. Enjoy !!!!!!

How To Choose A NoSQL Database?

How To Choose A NoSQL Database? NoSQL databases are now part of web-scale architecture. The question is when to use what? Below, I try to compare the NoSQL data stores that I have worked with. Hopefully, it would be useful for programmers exploring and deciding the technology for their web-scale application. When to use NoSQL Before deciding on to use NoSQL instead of a SQL technology, you should ask yourself following questions about your use case (includes  ACID  test of your application) : Transactions vs No transactions (Do you need atomicity?) [Most NoSQL databases don’t support transactions] Consistent or eventual consistent (Are you okay with eventual consistency?) [Most support configurable consistency mode. You should test your scale with the consistency mode your application requires. For example, your performance test holds no good when done on “eventual consistency” mode and you decide to use hard consistency for your application.] Vertical vs horizontal

Manage Log Files With Logrotate in Ubuntu

You need to install logratate  Sudo apt-get update Sudo apt-get install logrotate For confirm logrotate successfully installed or not run : logrotate Default logrotate configuration are present in : /etc/logrotate.conf Example :  /var/log/tomcat7/catalina.out {      copytruncate       weekly       rotate 52       compress       missingok       create 640 tomcat7 adm       size 5M } What does it means : Copytruncate : Truncate  the  original  log  file  to  zero size in place after creating a  copy,  instead  of  moving  the  old  log  file  and  optionally creating a new one.  It can be used when some program cannot be told to close its  logfile  and  thus  might  continue writing (appending) to the previous log file forever.  Note that  there is a very small time slice between copying  the  file  and  truncating  it,  so  some logging data might be lost.  When this option is used, the create option will have

How To Set Up Multiple SSL Certificates with Nginx on Ubuntu

You can host multiple SSL certificates on one IP Address using Server Name Identification (SNI). SNI ? Although hosting several sites on a single virtual private server is not a challenge with the use of virtual hosts, providing separate SSL certificates for each site traditionally required separate IP addresses. The process has recently been simplified through the use of Server Name Indication (SNI), which sends a site visitor the certificate that matches the requested server name. SNI can only be used for serving multiple SSL sites from your web server and is not likely to work at all on other daemons, such as mail servers, etc. There are also a small percentage of older web browsers that may still give certificate errors. Wikipedia has an updated list of software that does and does not support this TLS extension. Setting Up SNI does need to have registered domain names in order to serve the certificates. The steps in this tutorial require the user to have root privileges. You can
 Text Search In MongoDB One of the most important  feature in mongodb 10gen in version 2.4 is text search. configure text search in the mongo shell as: db.adminCommand( { setParameter : 1, textSearchEnabled : true } ) Or set a command: mongod --setParameter textSearchEnabled=true For Simple Example And More About text search in mongoDB kindly Visit  : - http://blog.mongodb.org/post/40513621310/mongodb-text-search-experimental-feature-in-mongodb?mkt_tok=3RkMMJWWfF9wsRohvKvOZKXonjHpfsX87ektW6S%2BlMI%2F0ER3fOvrPUfGjI4GTMphI%2FqLAzICFpZo2FEJSueQcg%3D%3D

Mongodb Query Optimization

Have slow database queries? Get more information on the performance of your queries using the explain feature. Using the mongo shell, invoke the explain() method on a cursor: > db.collection.find(query). explain() example : > db.user.find().explain(); The result will be a document that contains the explain output: {    "cursor" : "BasicCursor",    "indexBounds" : [ ],    "nscanned" : 57594,    "nscannedObjects" : 57594,    "nYields" : 2 ,    "n" : 3 ,    "millis" : 108,    "indexOnly" : false,    "isMultiKey" : false,    "nChunkSkips" : 0 } For More Detail visit : http://docs.mongodb.org/ manual/reference/explain/ Cheers  !!!!!!!!!!!!!!!!!