Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Which php frameworks would be best to work with NoSQL database like Cassandra? [closed]

Yii, Laravel, CI & Cakephp are best known php frameworks in market, I would like to know / confirm that does all these above frameworks works efficiently with NoSQL databases like Cassandra or Mongodb?

  • I am not sure about it so can anyone help to me understand it briefly?
  • Does server side validations can be performed if we go with NoSQL type database?
like image 513
Prashant Avatar asked Jul 14 '14 09:07

Prashant


People also ask

Can PHP be used with NoSQL?

The data can be distributed and load balanced easily compared to other databases. The primary reason for NoSQL's seamless compatibility with PHP is that it does not require a predefined schema which demands one way to manage data in column and rows.

What type of NoSQL database is Cassandra?

What is Apache Cassandra? Cassandra is a NoSQL distributed database. By design, NoSQL databases are lightweight, open-source, non-relational, and largely distributed. Counted among their strengths are horizontal scalability, distributed architectures, and a flexible approach to schema definition.

Should I use Cassandra or MySQL?

Most businesses use Cassandra for write-heavy workloads in the field of Data Science whereas MySQL is preferred for all other types of workloads. Hopefully, this would give you the knowledge to choose the right database according to your needs.

Which architecture is more suitable for NoSQL?

Hybrid architecture is a combination of different database models. Specifically, a hybrid architecture empowers you with the ability to work with SQL and NoSQL together within a single system.


1 Answers

I'm sure that you can work with Mongo from all framework that you need. Example from google:

  • http://www.yiiframework.com/extensions/?tag=mongodb
  • http://symfony.com/doc/current/bundles/DoctrineMongoDBBundle/index.html
  • https://github.com/jenssegers/laravel-mongodb

Select Framework that you like or have experience. Each of them have great community and solution work with NoSQL DB.

Regarding server side validation. Why not? Server validation should not connected to selected DB.

Difference from MySQL that if you enter invalid data it show you error. In NoSQL that value accepted. But correct behavior work with DB it's validate information before it pass DB. So first you validate POST then if it valid pass it to DB.

like image 134
Oleksandr Otchenashev Avatar answered Oct 03 '22 18:10

Oleksandr Otchenashev