Home Link: http://34.124.168.155/subscription-box
http://34.124.168.155/subscription-box/list
http://34.124.168.155/subscription-box/create
http://34.124.168.155/subscription-box/update
http://34.124.168.155/subscription-box/{id}
http://34.124.168.155/subscription-box/{id}
http://34.124.168.155/subscription-box/name/{nameURL}
http://34.124.168.155/subscription-box/name/{nameURL}
http://34.124.168.155/subscription-box/price/lesser-than/{price}
http://34.124.168.155/subscription-box/price/greater-than/{price}
http://34.124.168.155/subscription-box/price/equals/{price}
http://34.124.168.155/subscription-box/logs
Dapat dilihat dari profiling diatas bahwa method yang paling mahal adalah findAll() subscriptionbox dan update() subscriptionbox.
Akan tetapi, saya belum menemukan implementasi baru yang dapat mengalahkan waktu tersebut. Sehingga tidak dilakukan refactoring apa-apa terhadap kedua metode ini.
Pada save method saya (untuk creation subscriptionBox) terdapat kode yang tidak menerapi SOLID principle. Sehingga saya melakukan refactoring agar logic dari metode tersebut dipisah-pisah menjadi function tersendiri untuk menerapi single-responsibility principle.