Hunt Framework 3.0.0 Released, Web Framework for DLang!
zoujiaqing
zoujiaqing at gmail.com
Fri May 1 10:54:55 UTC 2020
This version is an important version jointly created by huntlabs
and the team developers of Putao technology service end through
nearly half a year's development iteration. Relying on the
dependency injection technology, the module division of the whole
framework becomes more reasonable and easy to expand and maintain.
Now you can easily use dlang language to build stable server-side
applications, including the support of restful API, grpc,
rabbitmq, redismq, redis cache, momory cache, entity ORM and
other key technologies.
Developers can build web server-side applications as fast as
laravel and spring boot;This version further simplifies the
operation, improves the friendliness of developers, and allows
more PHP and Java developers to start developing web services in
a few minutes.
## Version important update
* Reconstruct the core of the framework and rely on the
dependency injection technology to enhance the scalability;
* The performance of binary serialization module is improved by
1000%, which is 100% faster than that of C + + binary library
cereal;
* Enhance the operation of JSON serialization, support the
mutual conversion and binding of more complex objects and JSON
strings;
* Enhanced error handling, in case of various 500 errors,
detailed error stack information can be displayed according to
the settings;
* Integrate the latest hunt console, and add parameters for
configuration during startup;
* The form of configuration file is redesigned to facilitate
the user-defined configuration file to be loaded uniformly by the
framework and pave the way for the future configuration center;
* After refactoring, many basic framework service provider
modules are added;
* Support more stable worker mode, improve the underlying
concurrency;
* Support the latest rabbitmq, based on hunt AMQP
implementation;
* Redis reconstructs a new connection pool scheme, which is
more stable;
* Database and redis object unified recycling management
mechanism to better control memory allocation;
* Integrated user security authentication scheme based on hunt
Shiro + hunt JWT;
* Both database and redis use hunt net network library to
realize communication, reduce dependence on the third-party
library, and enhance traceability;
* Improve the stability of epoll concurrency model on Linux
platform;
* Support the IOCP model of Windows platform;
* Improve the stability of kqueue concurrency model of macOS
platform;
* Remove the stomp module because it is not commonly used in
general projects;
* The API of hunt cache is improved, and the latest binary
serialization library is adopted at the bottom;
* Remove the routing module and integrate the routing module in
the hunt HTTP library;
* Enhance and improve request and response objects;
* Enhance httpclient in hunt HTTP library, including various
localized cookie operations and stability improvement of file
upload;
* Integrate breadcrumbs to make crumbs easier to manage;
* Add the asynchronous operation scheme of taskexecutor based
on the internal message queue (rabbitmq, redismq, memorymq);
* Enhance the compatibility of the twig template engine, closer
to the usage habits of PHP developers;
## Sample code
import hunt.framework;
void main(string[] args)
{
app().run(args);
}
## Code resources
Gitee for Chinese users: https://gitee.com/huntlabs/hunt-framework
Github for globle users:
https://github.com/huntlabs/hunt-framework
## Related documents and support
D language Chinese community: https://forums.dlangchina.com
Official wiki document:
https://github.com/huntlabs/hunt-framework/wiki
Official Homepage: https://www.huntlabs.net
More information about the Digitalmars-d-announce
mailing list