by Bill Appleton
• October 29, 2015
We are thrilled to announce that DreamFactory 2.0 has been released and is available for immediate download. This second generation of DreamFactory provides major enhancements to API security, customizability, modularity, and performance.
Read more about DreamFactory’s current features.
This event is a real milestone for the DreamFactory team and the growing DreamFactory community. As one of the founders of the DreamFactory project, I wanted to provide some context for these exceptional new features and capabilities.
DreamFactory Software wrote the world’s first service-based applications over a decade ago. Soon after, we started building REST API backends in the cloud. A few years ago we decided to pour all of this experience into an open source project and we launched the first version of DreamFactory on GitHub. For the first time, developers everywhere could install a free REST API backend on any server, connect to any database, and instantly get the REST APIs they need to build and deploy modern mobile, web, and IoT applications.
The DreamFactory project has been well received, growing quickly to hundreds of thousands of developers and millions of users. But after listening to feedback from numerous developers, administrators, partners, and customers, the DreamFactory development team thought they could build an even better REST API backend. So, we completely rebuilt the product from scratch using the latest PHP frameworks and web standards. The results are spectacular.
We made important security enhancements to DreamFactory. First, we streamlined our support for Active Directory and LDAP. This allows enterprise customers to use their current user directory to control access to the platform. Users can inherit existing rights or receive custom rights for each application. We also rebuilt support for OAuth. This feature provides a convenient way for end users to log in with credentials from Facebook, Twitter, Google, or GitHub. You can set up both Active Directory and OAuth in a few minutes right from the DreamFactory admin console.
One of the most common requests we received from developers was to expand the scope of our role-based access controls. Users have always been able to host any number of applications on the DreamFactory platform. But in the 1.x generation of the software, users had the same role-based access rights regardless of which application they were running. With DreamFactory 2.0, users can have different access rights for each application. This feature allows an administrator to fine tune the access rights for each user and app.
Lastly, DreamFactory 2.0 has revolutionized the way it handles session management. JSON Web Tokens are an open industry standard from the Internet Engineering Task Force for representing claims securely. The adoption of JWT allows for stateless session management, and this has dramatically increased platform scalability. We also use JWT for API Keys. This increases security at the application level and allows each application to have a default role. You can distribute API keys to partners or use them to make an API public. The move to JWT also allows for more flexible session timeout rules.
When you connect to a data source, DreamFactory automatically generates a complete palette of powerful and reusable REST APIs with all of the required services. For example, DreamFactory provides over 40 different RESTful services for SQL, handling everything from metadata to stored procedures. If you read my blogs, then you know how helpful this capability is in reducing REST API backend complexity and cost.
But, sometimes the APIs also need to be customized. For example, you might want to do custom validations or create workflow triggers. And some developers want to go even farther and create their own REST APIs from scratch. For all of these reasons, the engineering team worked hard to increase the ability to customize existing APIs or build new ones with DreamFactory 2.0.
Next, DreamFactory 2.0 has a new kind of service available. It has always had the ability to call external REST APIs and bring them under role management. Now you can also create a custom service that runs as a server-side script. From your script, you can use any of the RESTful services made available by the platform. In this manner, you could design a completely custom RESTful interface that merges data from multiple sources.
We also doubled down on our support for Swagger. The new version of DreamFactory has an enhanced user interface that allows you to create the parameters and request or response format for your custom services. Then your custom service will appear in the API Docs just like the regular services generated by DreamFactory. The interface you design will also be used to validate the passed parameters and request or response information.
Finally, by popular demand DreamFactory 2.0 includes two powerful new features for REST-enabling legacy data sources. First, DreamFactory 2.0 makes it easy to connect to legacy SOAP services with a REST API. This makes it really easy to expose your existing SOAP services as a REST interface. Second, we added a feature called “data mesh” that enables you to read and write data from multiple databases in a single API call, without writing any server-side code. Now you can easily join records from any number of disparate databases via any unique identifier, such as phone number or email address.
We have conducted extensive horizontal and vertical performance benchmarks on the new DreamFactory platform and the results are impressive. Vertical scaling can be achieved with additional processors. Horizontal scaling works behind a load balancer. DreamFactory 2.0 can be scaled in a predictable manner to any desired performance characteristics. This was made possible in part by our adoption of JWT, discussed earlier. But there are other reasons for the performance improvements.
First, a major reason for the rewrite of DreamFactory was that download now. To simplify installation, there are Bitnami packaged versions of DreamFactory for all major IaaS cloud platforms, including AWS, Azure, GCP, and VMware. There is a microservices container on Docker Hub. There are easy desktop installers for Mac, Windows, and Linux. The PaaS versions of DreamFactory for BlueMix, OpenShift, Heroku, and Pivotal will be out in November. The source code is available on GitHub under the Apache License. And if you like instant gratification, we also offer a free developer environment to try a hosted instance of DreamFactory.
We look forward to hearing about the incredible mobile, web, and IoT applications users will build on DreamFactory 2.0. Be sure to let us know how it goes.
Read more about DreamFactory 2.0:
DreamFactory 2.0 Beta Now Available
DreamFactory 2.0 Bundled With MongoDB
DreamFactory 2.0 released into the wild
DreamFactory 2.0 Support For SQLite
Join the DreamFactory newsletter list.