DreamFactory 4.11.0 has been released!

We’re happy to announce that DreamFactory version 4.11 has been released. With this release, we’ve added native support for MongoDB databases.

Features / Performance Improvements

  • We have added native support for MongoDB Databases that utilize shards / replica sets, mainly for MongoDB Atlas databases. Now you can use the +srv prefix in your dsn connection string instead of having to write out each and every shard within your database.
  • We have added a count_only parameter to the system endpoints if you only want to return the total number of e.g. users
  • The logstash UI service endpoints should now load in a lot quicker than before, particularly if you have Azure Blob or AWS S3 services.

Bug Fixes

  • Fixed an issue where S3 and Azure folders were returning as "not found" despite files existing within them on the Files tab.
  • Fixed an issue where S3 get requests to the root were timing out for very large buckets
  • Resolved our installer thinking that mysql already existed on the server for Debian 9
  • Resolved Snowflake driver not installing correctly on Fedora 33 and RHEL 8

Support Added for SRV connection strings.

When using replica sets with MongoDb, the client has to specify at least one replica set (or may include several) when connecting. This in turn allows us to connect to a replica set even if one of the nodes that we ask for  is unavailable.

Previously in DreamFactory this meant that we could end up with a very large connection string, and we would also need to specify the ssl and replicaSet options. For example, the connection string and options when connecting to a MongoDB Atlas dataset would look like this:

Quite the mouthful!

In DreamFactory 4.11.0 we have added connectivity support with mongodb for srv. The SRV record identifies all the nodes associated with the cluster (and their port numbers) and an associated TXT record defines the options for the URI.

If you have configured your Mongodb cluster in this way, or are you using their cloud solution, Atlas, you can now use the mongodb+srv:// prefix in your connection string. So the configuration to connect to the same MongoDb Atlas cluster above now looks like this:

A little nicer!

Get Started with DreamFactory

If you are interested in trying the latest DreamFactory features, or want to see how DreamFactory can help you set up your own fully documented, secure REST APIs, start your free trial!

Related Reading:

https://blog.dreamfactory.com/dreamfactory-version-4-10-2-has-been-released/