Computer >> บทช่วยสอนคอมพิวเตอร์ >  >> การเขียนโปรแกรม >> HTML

Websockets Apache Server compatibility ใน HTML5


เมื่อพัฒนาแอปที่แสดงข้อมูลใหม่ทุกครั้งที่จัดเก็บในโฟลเดอร์ผ่าน XML เราใช้ websockets apache server

Mod_websocket หรือ php websocket สามารถใช้ได้ เรายังสามารถใช้ self-hosted realtime web technology สำหรับ realtime communication ระหว่าง server และ client

Hosted realtime web solutions และ realtime push aspect ของแอปพลิเคชันของคุณสามารถ offload ได้

อย่างไรก็ตาม Apache server ไม่ค่อยดีใน long-running persistent connections ระหว่าง server และ client

โซลูชันที่ดีที่สุดคือ:

  • ขณะใช้ Apache เป็น application server เราต้องใช้ dedicated realtime webserver อีกตัว
  • Self-hosted realtime webserver สามารถจัดการ concurrent connections มากได้
  • Hosted service สามารถใช้ร่วมกับ Apache application server