My application works like this.
A database(Mysql) where there is a command. The command is an object(consists of fields many fields like ints and strings). There is a webservice which interacts with the database and get the command from the DB and performs some operation.
The way how I am storing the command into db is by stripping all the fields and inserting them in to the db.
Can I use cassandra in place of mysql and store the command object?
Why do you want to move away from your current solution which involes a relational database? I wouldn’t (believe it or not) recommend to change your datastore premature.
If your are experience problems and want to replace your relational database, then I would recommend to investigate Apache Cassandra.
If you find Cassandra interesting I would suggest a data model that looks something like this:
(thanks Arin (and his excellent blog post) for the Cassandra data model notation)