Alpha Software Mobile Development Tools:   Alpha Anywhere    |   Alpha TransForm subscribe to our YouTube Channel  Follow Us on LinkedIn  Follow Us on Twitter  Follow Us on Facebook

Announcement

Collapse

The Alpha Software Forum Participation Guidelines

The Alpha Software Forum is a free forum created for Alpha Software Developer Community to ask for help, exchange ideas, and share solutions. Alpha Software strives to create an environment where all members of the community can feel safe to participate. In order to ensure the Alpha Software Forum is a place where all feel welcome, forum participants are expected to behave as follows:
  • Be professional in your conduct
  • Be kind to others
  • Be constructive when giving feedback
  • Be open to new ideas and suggestions
  • Stay on topic


Be sure all comments and threads you post are respectful. Posts that contain any of the following content will be considered a violation of your agreement as a member of the Alpha Software Forum Community and will be moderated:
  • Spam.
  • Vulgar language.
  • Quotes from private conversations without permission, including pricing and other sales related discussions.
  • Personal attacks, insults, or subtle put-downs.
  • Harassment, bullying, threatening, mocking, shaming, or deriding anyone.
  • Sexist, racist, homophobic, transphobic, ableist, or otherwise discriminatory jokes and language.
  • Sexually explicit or violent material, links, or language.
  • Pirated, hacked, or copyright-infringing material.
  • Encouraging of others to engage in the above behaviors.


If a thread or post is found to contain any of the content outlined above, a moderator may choose to take one of the following actions:
  • Remove the Post or Thread - the content is removed from the forum.
  • Place the User in Moderation - all posts and new threads must be approved by a moderator before they are posted.
  • Temporarily Ban the User - user is banned from forum for a period of time.
  • Permanently Ban the User - user is permanently banned from the forum.


Moderators may also rename posts and threads if they are too generic or do not property reflect the content.

Moderators may move threads if they have been posted in the incorrect forum.

Threads/Posts questioning specific moderator decisions or actions (such as "why was a user banned?") are not allowed and will be removed.

The owners of Alpha Software Corporation (Forum Owner) reserve the right to remove, edit, move, or close any thread for any reason; or ban any forum member without notice, reason, or explanation.

Community members are encouraged to click the "Report Post" icon in the lower left of a given post if they feel the post is in violation of the rules. This will alert the Moderators to take a look.

Alpha Software Corporation may amend the guidelines from time to time and may also vary the procedures it sets out where appropriate in a particular case. Your agreement to comply with the guidelines will be deemed agreement to any changes to it.



Bonus TIPS for Successful Posting

Try a Search First
It is highly recommended that a Search be done on your topic before posting, as many questions have been answered in prior posts. As with any search engine, the shorter the search term, the more "hits" will be returned, but the more specific the search term is, the greater the relevance of those "hits". Searching for "table" might well return every message on the board while "tablesum" would greatly restrict the number of messages returned.

When you do post
First, make sure you are posting your question in the correct forum. For example, if you post an issue regarding Desktop applications on the Mobile & Browser Applications board , not only will your question not be seen by the appropriate audience, it may also be removed or relocated.

The more detail you provide about your problem or question, the more likely someone is to understand your request and be able to help. A sample database with a minimum of records (and its support files, zipped together) will make it much easier to diagnose issues with your application. Screen shots of error messages are especially helpful.

When explaining how to reproduce your problem, please be as detailed as possible. Describe every step, click-by-click and keypress-by-keypress. Otherwise when others try to duplicate your problem, they may do something slightly different and end up with different results.

A note about attachments
You may only attach one file to each message. Attachment file size is limited to 2MB. If you need to include several files, you may do so by zipping them into a single archive.

If you forgot to attach your files to your post, please do NOT create a new thread. Instead, reply to your original message and attach the file there.

When attaching screen shots, it is best to attach an image file (.BMP, .JPG, .GIF, .PNG, etc.) or a zip file of several images, as opposed to a Word document containing the screen shots. Because Word documents are prone to viruses, many message board users will not open your Word file, therefore limiting their ability to help you.

Similarly, if you are uploading a zipped archive, you should simply create a .ZIP file and not a self-extracting .EXE as many users will not run your EXE file.
See more
See less

IIS Dynamic Content Compression is off by default, has anyone turned on

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    IIS Dynamic Content Compression is off by default, has anyone turned on

    I was noticing the AA IIS response received from a server running under IIS was much larger than the response from the traditional AA WAS. In IIS version 10, Microsoft put a couple of things in to allow compression of dynamic content, which is something we had under traditional WAS by turning on "Enable gzip" under the "Performance" tab.

    Microsoft has left their gzip compression turned off, by default.

    Has anyone turned it on for Alpha under IIS ver 10 and what are the recommended configuration settings - threshold settings, MIME types, etc.?

    https://blogs.msdn.microsoft.com/fri...res-in-iis-10/

    #2
    Re: IIS Dynamic Content Compression is off by default, has anyone turned on

    We have IIS running on a Windows Server 2012 R2 and have added and turned on dynamic content compression.
    I don't remember changing any of the default values.
    I also don't remember indicating that any particular MIME type was dynamic. However, I believe that all content is considered dynamic unless explicitly added as static content in the server's (or at the default web site or site/folder level) Configuration Editor.

    I seem to remember adding .db (application/x-sqlite3) to the static collection before setting the server up to do dynamic compression.

    I can't think of any problems it has caused by turning on the dynamic compression. As the article that you referenced explained, at the time I did turn on Failed Request Tracing and set it to trace even the HTTP code 200 responses. I did see that everything was being compressed (almost everything) and it did seem to speed up some traffic, especially that which concerned json resources.
    The one thing that I remember not seeing being compressed while looking through the trace information was text/html mimeTypes. I believe that I needed to change it from 'text/html' to 'text/html; charset=utf-8'.

    Comment


      #3
      Re: IIS Dynamic Content Compression is off by default, has anyone turned on

      Jeff, when you say you noticed a speed up in traffic, do you mean client page loads were faster?
      I'm also running on Windows Server 2012 R2 and don't have the dynamic content compression module installed.
      Wondering if I should consider adding this server role and try it out to see if performance improves at all.

      Rich, if you run dynamic compression I'd be interested to hear your feedback on it .. performance, settings, etc.
      Alpha Anywhere v12.4.6.5.2 Build 8867-5691 IIS v10.0 on Windows Server 2019 Std in Hyper-V

      Comment


        #4
        Re: IIS Dynamic Content Compression is off by default, has anyone turned on

        I only really develop mobile apps then build them with PhoneGap Build so I don't see pages loads going any faster.

        The next part is a bit long but it helps to show what was faster...

        After a user logs in to our app, I create and download a sqlite database for each user. It is a bit of a complicated process because at the time we were building the app, we couldn't build the whole sqlite database with the user's data and then download it because we were getting timeout issues. I think the client (in our case, Android) would decide to timeout and not the server. After playing around with every single timeout property on both the client and server sides, I finally gave up. Later, I came to understand that for these sqlite .db files and for some json files, the app's webview/browser wasn't handling the request. Those requests for downloading the files are being managed by the lower level Dalvik virtual machine on Android (even on our Android 7.1.1 tablets). Anyway, it is Dalvik that times out and not the app. So we broke up the process where we create the sqlite database but only add 1 row of data to each table and download it. It may no longer be true but at the time if we tried to create an empty table on the server we would get an error. Also at the time, in order to set up indexes in the sqlite database, we had to initialize them in the server version of the sqlite db because we couldn't figure out how to add indexes via the sqlite plugin on the device. We get our database downloaded to the device, then run through quickly and delete the 1 row of junk data in each table. We then populate the tables with data from the server. Table by table. At the end, once the data has been populated, we create some views in the device's sqlite db. If you do nothing that involves the DOM needing to recalcute any redraws in the onSuccess events of sqlite actions, I believe that all of that can pretty much run in the background without interfering with the user so the user THINKS the app is loading faster.

        All that to explain that once we turned on dynamic compression, our login process was 4 times faster. In Chrome's DevTools network tab, I could watch the download times for the server's responses go from quite a few seconds to a few hundred milliseconds in some cases.

        For a5w pages and for speeding up smaller, individual page loads, I am wondering if dynamic compression would help that much. Especially where the IIS configuration might have some chunked transferring going on. I need to research it again but I think that the whole "page" needs to be finished being created before compression and only then can the response start to be delivered back to the client. That may be old news now though. Maybe the newer versions of IIS can chunk, compress the chunk, and deliver the chunk while preparing other chunks in the background.

        Comment


          #5
          Re: IIS Dynamic Content Compression is off by default, has anyone turned on

          Thanks Jeff, wow that was a fascinating process you worked through with creating the mobile database on the fly like that. Kudos for even figuring that out.

          As for the dynamic compression, I wonder if Terry at Alpha might be able to offer some insight. Perhaps I'll send him an email tomorrow.
          I'm also wondering how pre-rendering of components fits in to this and whether pre-rendering components would see less benefit with dynamic compression versus non pre-rendered components.

          It's all quite interesting and anything that potentially improves web app performance is worth investigating.
          Alpha Anywhere v12.4.6.5.2 Build 8867-5691 IIS v10.0 on Windows Server 2019 Std in Hyper-V

          Comment


            #6
            Re: IIS Dynamic Content Compression is off by default, has anyone turned on

            So far, I have only turned on the IIS Dynamic Content Compression (DCC) for my local dev computer.

            A Grid with about 30 rows along with an updateable detail view for it, with "Pre-fetch data for Detail View" turned on, returns 1MB when DCC is off.

            When DCC is on, only 240KB is returned!

            On a local dev computer that time difference is negligible. (But keep reading to see what else I found.)

            This is a fairly small grid with very little data in it that the user actually sees. There are a lot of hidden fields that control the look of things and the row/column -based security that is applied to each row as it comes up in the Detail View. But there is no way I have 1Meg of data and controls.

            Using Chrome Dev Tools I inspected the returned ajax response; it contained ~ 3600 lines of Javascript and data.

            The last 2000 lines were nothing but SVG definitions in a Javascript array for a ton of icons (that I had know idea were even present in the Grid) with ID's beginning with "alpha-icon-".

            In AA designer, I switched to the "xbasic" view of the whole component, searched for "alpha-icon-" and found out the new Transient message uses them.
            I took out the Action Javascript that had my one-and-only Transient message in the component.

            That shaved 700KB and 2000 lines off of the returned ajax response for opening that component.

            : - )

            This was under Alpha version 4.5.5.8 Build # 5581.

            Comment


              #7
              Re: IIS Dynamic Content Compression is off by default, has anyone turned on

              I took out the Action Javascript that had my one-and-only Transient message in the component.

              That shaved 700KB and 2000 lines off of the returned ajax response for opening that component.
              That's just crazy - won't be using that!
              Insanity: doing the same thing over and over again and expecting different results.
              Albert Einstein, (attributed)
              US (German-born) physicist (1879 - 1955)

              Comment

              Working...
              X