Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 157535
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T10:31:17+00:00 2026-05-11T10:31:17+00:00

Yay, first post on SO! (Good work Jeff et al.) We’re trying to solve

  • 0

Yay, first post on SO! (Good work Jeff et al.)

We’re trying to solve a bottleneck in one of our web-applications that was introduced when we started allowing users to generate reports on-demand.

Our infrastructure is as follows: 1 server acting as a Webserver/DBServer (ColdFusion 7 and MSSQL 2005)

It’s serving a web-application for our backend users and a frontend website. The reports are generated by the users from the backend so there’s a level of security where the users have to log in (web based).

During peak hours when reports are generated it brings the web-application and frontend website to unacceptable speed due to SQL Server using resources for the huge queries and afterward ColdFusion generating multi page PDFs.

We’re not exactly sure what the best practice would be to remove some load, but restricting access to the reports isn’t an option at the moment.

We’ve considered denormalizing data to other tables to simplify the most common queries, but that seems like it would just push the issue further.

So, we’re thinking of getting a second server and use it as a ‘report server’ with a replicated copy of our DB on which the queries would be ran. This would fix one issue, but the second remains: generating PDFs is resource intensive.

We would like to offload that task to the reporting server as well, but being in a secured web-application we can’t just fire HTTP GET to create PDFs with the user logged in the web-application from server 1 and displaying it in the web-application but generating/fetching it on server 2 without validating the user’s credential…

Anyone have experience with this? Thanks in advance Stack Overflow!!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. 2026-05-11T10:31:18+00:00Added an answer on May 11, 2026 at 10:31 am

    ‘We would like to offload that task to the reporting server as well, but being in a secured web-application we can’t just fire HTTP GET to create PDFs with the user logged in the web-application from server 1 and displaying it in the web-application but generating/fetching it on server 2 without validating the user’s credential…’

    why can’t you? you’re using the world’s easiest language for writing webservices. here are my suggestions.

    first, move the database to it’s own server thus having cf and sql server on separate servers. the first reason to do this is performance. as already mentioned, having both cf and sql on the same server isn’t an ideal setup. the second reason is for security. if someone is able to hack your webserver, well there right there to get your data. you should have a firewall in place between your cf and sql server to give you more security. last reason is for scalability. if you ever need to throw more resources or cluster your database, it’s easier when it’s on it’s own server.

    now for the webservices. what you can do is install cf on another server and writing webservices to handle the generation of reports. just lock down the new cf server to accept only ssl connections and pass the login credentials of the users to the webservice. inside your webservice, authenticate the user before invoking the methods to generate the report.

    now for the pdfs themselves. one of the methods i’ve done in the pass is generating a hash based on some parameters passed (user credentials and the generated sql to run the query) and then once the pdf is generated, you assign the hash to the name of the pdf and save it on disk. now you have a simple caching system where you can look to see if the pdf already exists and if so, return it, otherwise generate it and cache it.

    in closing, your problem is not something that most haven’t seen before. you just need to do a little work and your application will magnitudes faster.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 253k
  • Answers 253k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer From the XML parser point of view, there are multiple… May 13, 2026 at 10:00 am
  • Editorial Team
    Editorial Team added an answer Indeed, MusicKit is an audio tool, not a symbolic tool… May 13, 2026 at 10:00 am
  • Editorial Team
    Editorial Team added an answer StyleCop FxCop actually provides rules for XML documentation, as well.… May 13, 2026 at 10:00 am

Related Questions

Yay, first post on SO! (Good work Jeff et al.) We're trying to solve
Possible Duplicates: Custom attributes - Yay or nay? Non-Standard Attributes on HTML Tags. Good
I'm learning PHP and MySQL to get a hang of server-side scripting and for
I need to pull out the content out of two paragraph tags and break
I'm working through some python problems on pythonchallenge.com to teach myself python and I've

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.