Home  /  RSS  /  RSS Comments  /  RSS for Progress  /  Enter

Posts in category ‘Progress’.

CppCMS 1.1.0 Beta was released

Tuesday, July 11, 2017, by artyom ; Posted in: Progress; 0 comments

After the goals for 1.2 were completed I announce official CppCMS 1.1.0 beta (stable will be 1.2.0)

It is available on the usual place:


It includes many new and important features:


Now I ask the community to fully participate in beta testing so 1.2 will be released ASAP.

Goals for beta testing

Framework Unit Test:

  1. Download the beta version, build, run tests
  2. Report on what platform you tested: OS, Compiler version, standard library (libstdc++/libc++)
  3. Have you had any tests failed and if you had please attach Testing/Temporary/LastTest.log and CMakeCache.txt from your build directory

I specially need tests on Mac OS X various versions, various ARM platforms like raspberry pi and Windows different compilers

Compatibility Test:

  1. Try to build your existing applications with latest version, report any problems
  2. If you have been using CppCMS 1.0.5 till now please try to build CppCMS 1.1.0 and run existing programs with new shared objects/dll WITHOUT rebuilding your applications - it must work as is!

Feature Test:

Go to: http://cppcms.com/wikipp/en/page/cppcms_1_2_whats_new

And try some of new features, report any issues with them or any problems with API design.

If all goes smoothly I'll release 1.2.0 - official stable version.

CppCMS code migrated to GitHub

Wednesday, March 1, 2017, by artyom ; Posted in: Progress; one comment

After multiple requests and my final decision the CppCMS web framework code migrated to GitHub


Please note:

  1. Only CppCMS framework migrated, other subprojects like CppDB or Wikipp are still pending conversion
  2. The main bug tracker is still on source-forge - however I'll relate to issues opened on GitHub

Session Sharing with Non-CppCMS technologies

Monday, November 16, 2015, by artyom ; Posted in: Progress; one comment

One of the problems in integrating different technologies on same web site is sharing the data between them, in particular sharing session data.

For example you have a huge web platform written in PHP or Java and you want to improve performance of certain subsystems poring them to CppCMS. On of the first issues you'd encounter is how to share the session between them - so every side would know who is the user, what permissions he has, etc.

So I made cppcms::session_pool and cppcms::session_interface accessible outside the usual request/response scope and wrapped it with pure C API - such that no C++ exceptions are thrown and every function is resolvable via dlopen/GetProcAddress- to make it more accessible for integration with different languages.

Several modules for different programming languages were implemented allowing smooth integration with their web frameworks and APIs:

Actually there is no particular limits regarding technology - just a question of implementing loadable module for a specific language/platform.

In general it consists of a SessionPool object that is created from a configuration file and exists globally. It generates a special Session objects that is loaded from Http Request cookies, updated and saved to the Http Response object.

It looks like this:


// pool initialization
// per request session access
if($session->is_set('x')) {



static SessionPool pool;

public void init() throws ServletException
    pool = SessionPool.openFromConfig("/path/to/cppcms-config.js");

public void doGet(HttpServletRequest request,
                  HttpServletResponse response) 
                    throws ServletException, IOException
    Session session = pool.getSession();
    String x="0";

Python with Django:

# Create global pool

# Actual view
def home(request):
    if 'x' in s:
            v= s['x']
    response = HttpResponse()


static SessionPool pool;
static Example() {
    pool = SessionPool.FromConfig("cppcms-config.js");
protected void Page_Load(object sender,EventArgs e)
    using(Session s = pool.Session()) {
        string v="0";
        v = (int.Parse(v) + 1).ToString();

So basically you have a full access to CppCMS session from 3rd party most popular technologies.

Still thinking of implementing a module for Ruby on Rails but I have never written a line of code in Ruby so it is quite challenging for me. I'll probably wait till somebody contributes one.

Serving All Israeli News Web Sites from a Single EC2 instance...

Thursday, November 13, 2014, by artyom ; Posted in: Progress, Benchmarks, Framework; 6 comments

For the last year the development of the CppCMS project was less active. The vast majority of the work hours were spent on a customer's project that used CppCMS to create an outstanding advertisement system.

The project is called Linicom.

Today, when Linicom is up, running and maintained by a larger team, so I can resume the activity on the core CppCMS project itself.

Few words about Linicom:

Linicom is an engine that provides content and visitor sensitive advertisements for almost all large Israeli news web sites: including Ynet, Haaretz, Jerusalem Post, Mako, Walla and other significant web sites in Israel and abroad.

Here some interesting facts:

The system runs behind Lighttpd and uses PostgreSQL for persistent data storage. Also PostgreSQL is used extensively, all real time data is stored in memory.

Almost every request needs data processing in order to provide highly customized advertisements. In technical terms it means that almost no request can be "outsourced" to a static files - every request for every customer should be processed explicitly.

This system is probably one of the classic applications of CppCMS technology - web based system that required to be fast and efficient, being able to handle outstanding and sometimes unexpectedly changing loads without problems and provide high QoS.

Use of in-memory data storage, caching and efficient handing of the data that can't be cached is were CppCMS shines. Having a big growth potential with a minimal required maintenance and high reliability allows the to handle the business-end safely without worrying about performance issues.

CppCMS 1.0.5 Released

Thursday, October 30, 2014, by artyom ; Posted in: Progress; 4 comments

Bug Fixes:

Minor Security Improvements:

Platform Support:

The code is downloadable from sourceforge. Binary RPM releases already available at The Open Build Service repository. Debian packages would be published soon.

Update: Debian and Ubuntu packages are ready at the repository.

next page