Depending on which frameworks you choose you have different options. It depends also on your use-case what you can choose:
Just number crunching on the server side:
You need to transport page by page to a client: