A new mORMot user notified on our forum that he just made a short video, about authentication and security with our framework, from the perspective of an AJAX Client. Many thanks for sharing your experiences! This video illustrate how RESTful authentication is implemented by mORMot. It compares also […]
2013-01-20
Adding JavaScript server-side support to mORMot
2013-01-20. Open Source › mORMot Framework
A long-time mORMot user and contributor just made a proposal on our
forums.
He did use mORMot classes to integrate a SpiderMonkey
JavaScript engine to our very
fast and scaling HTTP server, including our optimized JSON serialization
layer.

Today, he sent to me some of his source code, which sounds ready to be included in the main trunk!
This is a great contribution, and Pavel's goal is nothing less than
offering
Delphi based, FAST multithreaded server with ORM and node.js modules
compatible.
2013-01-18
Register any class for proper TObjectList serialization
2013-01-18. Open Source › mORMot Framework
Up to now, the only way of directly serializing a list of class instances as
a JSON array was to use a TCollection.
In fact, objects are not alone, just like mORMots tend to have a nice family:

You have either to let your collection class inherit
from the new TInterfaceCollection type, either call
the TJSONSerializer.RegisterCollectionForJSON() method.
Could sounds a bit over-sized for just a list of objects.
We have just added a new feature, adding a new
"ClassName":"TMyObject" field in the JSON object serialization,
and allowing it to create the proper class instance on both transmission sides,
therefore able to properly let TObjectList be serialized and
un-serialized.
Register any TCollection type for proper JSON serialization
2013-01-18. Open Source › mORMot Framework
Due to the current implementation pattern of the TCollection
type in Delphi, it was not possible to implement directly this kind of
parameter.
In fact, the TCollection constructor is defined as such:
constructor Create(ItemClass: TCollectionItemClass);
And, on the server side, we do not know which kind of
TCollectionItemClass is to be passed. Therefore, the
TServiceFactoryServer is unable to properly instantiate the object
instances, supplying the expected item class.
The framework propose two potential solutions:
- You can let your collection class inherit from the new
TInterfaceCollectiontype; - You can call the
TJSONSerializer.RegisterCollectionForJSON()method to register the collection type and its associated item class.
First solution has already
been detailed in this blog.
We will now describe the second (and new) way.
2013-01-05
Domain-Driven-Design and mORMot
2013-01-05. Open Source › mORMot Framework
Implementing Domain-Driven-Design (DDD) is one goal of our mORMot framework.

We already presented this particular n-Tier architecture.
It is now time to enter deeper into the material, provide some definition
and reference.
You can also search the web for reference, or look at the official web site.
A general
presentation of the corresponding concepts, in the .NET world, was used as
reference of this blog entry.
Stay tuned, and ride the mORMot!
2012-12-31
Enhance existing projects with mORMot
2012-12-31. Open Source › mORMot Framework
Even if mORMot will be more easily used in a project designed from scratch, it fits very well the purpose of evolving any existing Delphi project, or even creating the server side part of an AJAX application.

One benefit of such a framework is to facilitate the transition from a Client-Server architecture to a N-Tier layered pattern.
2012-12-20
How to make it fast?
2012-12-20. Pascal Programming
On our forum, a clever question was posted about publishing some enhanced RTL functions for newer versions of Delphi - as we did for Delphi 7 and 2007.
I was looking for a faster IntToStr implementation and discovered SynCommons.pas.
(....)
That's really too bad,SynCommons.pasreally does contain some seriously fast stuff, people would greatly benefit from it if it was made general-purpose.
In fact, it would not be enough to change the RTL function
implementations.
IMHO, to write something scalable, you need to get rid of such
functions.
2012-11-30
Transmission between mORMots
2012-11-30. Open Source › mORMot Framework
Little mORMots have a very efficient transmission protocol, in their mountains...
Most mORMots are highly social and use loud whistles to communicate with one another, especially when alarmed.
As stated by Wikipedia

In a comment of the already quoted blog article about DataSnap performance issues, Tom asked this interesting question about mORMot, after I presented how we like to use http.sys kernel-mode server to achieve best performance possible over HTTP:
What about TCP communication, http is not the only Internet protocol. Protobuf, Thrift, MsgPack, BSON etc, is binary protocol and http i big overhead in some systems.
Did http.sys enable use of tcp/ip socket protocol?
« previous entries - page 29 of 52 - next entries »
