jeudi 29 septembre 2016

What is the best approach for working with too many large images in three layer architecture c# [on hold]

I have a project with Three Layer Architecture in C# .NET :

  1. MVC Application (Presentiation Tier): is the tier in which users interact with an application
  2. Web Service (Middle Tier): is the layer that the presentation tier and the data tier use to communicate with each other.

  3. Sql Database (Data Tier): is basically the server that stores the MVC application data.

Three Layer Architecture

Now I need to store many large photos that uploaded from presentation. Sending these files to the web service failed beacuas it exceed the default maximum upload file size in IIS (4MB).

Therefore I have some possible solution for sending large file. And some approach for storing and retrieving it.

Sending:

  1. Don't send images to the Data Layer and store them in the presentation server : this maybe hit in performance of Presentation Server.
  2. Increase maximum upload file size in web config and send them as http post requests.
  3. Using SOAP messages with attachments.
  4. Using File transfer (ftp)

Storing and Retrieving:

  1. Using SQL FileStream or FileTable and storing files in separate database.
  2. Using file system and saving images as files: I think this is easier than storing in SQL to support and maintenance.
  3. Using a FTP server (related to file transfer).

Consider to support and maintenance, when number of the images pass a million; what is the best approach?

Aucun commentaire:

Enregistrer un commentaire