What's the best middleware for NoSQL databases with a jQuery-based frontend?

I’m thinking about changing my web stack. Right now I use Java with Spring, Hibernate, MySQL, Jetty, Wicket, and jQuery. But I want to try a NoSQL database with an AJAX frontend.

For the frontend, I’ll probably use jQuery and JSON. I’m leaning towards MongoDB because it has better query options, but CouchDB is still on my list.

The tricky part is picking the middleware. Should I go for a RESTful solution? I’d like to stick with Java (or maybe Scala or Groovy) because I use Drools for rules and Shiro for security. But I’m open to other options if they’re quick and easy to work with.

If you’ve built apps with AJAX, JSON, and NoSQL, what tools did you use? What did you like or dislike about them? I’d love to hear your experiences!

yo finn! if ur sticking with java, spring boot + mongodb is a solid combo. easy to set up restful apis and integrates well w/ jquery. i’ve used it for a few projects and it’s pretty slick. just watch out for the learning curve if ur new to nosql. good luck on ur stack upgrade!

For your NoSQL and jQuery setup, I’d recommend considering Express.js as middleware. It’s lightweight, flexible, and works seamlessly with MongoDB. I’ve used this combination in several projects, and it’s been highly efficient.

Express.js allows you to create RESTful APIs quickly, and its middleware ecosystem is extensive. You can easily integrate security modules like Passport.js for authentication.

If you’re set on using Java, Spring Data MongoDB is a solid choice. It provides excellent MongoDB support and integrates well with your existing Spring knowledge.

Regardless of your choice, ensure you properly design your data schema for NoSQL. It’s a different paradigm from relational databases and requires careful planning to leverage its benefits fully.

hey there! have u considered node.js for ur middleware? it works great with nosql databases and jquery. plus, it’s javascript all the way down, so u can use the same language for front and back end. what kinda app r u building? maybe we can brainstorm some ideas together!